wpbroken2much
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Cannot Find Bulk External URL Shortening PluginI am a plugin developer and I am trying my best not to have to make my own plugin to accomplish such basis tasks.
It shouldn’t be hard to write a PHP script which extracts external URLs from posts, saves them in the database, and replaces the original post URLs with URLs to pages which redirects outside the visibility of search engines. The hardest part for me would be overcoming script timeout constraints on my server. This means I will have to learn to write the plugin so it can run via WP-CLI or create some type of AJAX UI which shows the progress of the job with an option to pause.
I have never made a plugin which uses WP-CLI and I have never used javascript on any of my prior plugins. All my prior plugins have been written entirely in PHP. I shouldn’t have to learn anything because plugins like ThirstyAffiliates and PrettyLinks claim to offer competent cloaking solutions but if you contact either one they admit lacking the basic features I describe here.
Why isn’t this basic functionality possible? It seems like something everyone who would ever consider cloaking would need at a minimum.
I have run into the same problem with URL shortening plugins. While some appear to offer bulk link shortening they seem to be limited to just posts hosted on your own blog. Jetpack for instance has a shortener buy it only applies to the site and not external links on the site.
Thanks, that turned out to be the case with that one but still a problem here. Turns out that despite network activate failing that sites in the network have it active anyway. Surprised to see that since I though one must activate it on the network level first to be used on any site in that network.
Great replies so far, I can only assume that you have nothing to offer capable of convincing me to try the paid version. I guess it either doesn’t offer what I need or you just don’t think offering any sort of limited trial worth your time.
Forum: Developing with WordPress
In reply to: What Plugins Can Bulk Cloak Old Links Automatically?I have installed Pretty Links, Thirsty Affiliates, and Easy Affiliate Links but they all share the same flaws. They all seem only useful for cloaking future links and often those links must be cloaked by hand. They seem to advertise features that might do what I need but I’ve never tried them and don’t want to pay for premium versions that I don’t know will work or not.
Right now all I can figure out how to do with those plugins in manually create future cloaked links. They don’t even seem capable of auto-cloaking every future external link. Its as if they expect each post to be manually created by a person and for that person to submit any links they want cloaked to the cloaking plugin one at a time. This is not feasible for most people who need to cloak links because most people who need to cloak links are auto-blogging.
The plugin I need must run when the publish function runs and automatically cloak any external links detected in the post.
- This reply was modified 3 years, 6 months ago by wpbroken2much.
Forum: Developing with WordPress
In reply to: What Plugins Can Bulk Cloak Old Links Automatically?Bennie, your solution couldn’t possibly work. It would work if all I needed to do was change URLs. I could probably find a regex to match the href attribute values of any anchor tag in a post and replace it with something but that doesn’t create a redirect to the source.
To create a redirect to the source the matched href attribute value must also be stored in the database in a row with at least three columns. Those columns consisting of an auto-incremented integer as the primary key, a string value for the original URL, and an integer for the post ID. Storing that data would allow a plugin to replace all links in a post, and know where to redirect the user to when they click on the link. The final href value would ideally contain the primary key value from the links table and use that to lookup the original URL before redirecting the user.
- This reply was modified 3 years, 6 months ago by wpbroken2much.
Forum: Fixing WordPress
In reply to: Newspack Theme Slowest Theme EverThat doesn’t qualify as a support page because it is just a collection of articles with no way to contact their staff or post anything yourself.
Great feedback plugin developers. I’ll remember to look for a better solution like NS Cloner or WP Migrate.
Also, does Feedzy check the source page for open graph tags? I ask because one of the feeds doesn’t actually have images in the feed, but the site had og image tags.
The feeds seem to be working now but not if I try to run them one right after the other. I am using Pantheon so I don’t know if they cache the results the first time the feed is crawled or something.
Also, how do I schedule a cron job to run Feedzy? Most autoblogging plugins provide a URL to setup a cron job for but I don’t see one for Feedzy.
Forum: Fixing WordPress
In reply to: How Do I Bulk Delete Tens of Thousands of Posts?I found a way to delete everything from a specific category but the category has over 30,000 posts has been running for over 3 possibly 4 days and only appears slightly over half way done.
wp post delete $(wp post list --cat=8 --format=ids)Then I will try this other one which I think will remove posts from a specific category for a specific year. I’d like to add the month to this one if possible.
wp post delete $(wp post list --post_type=post --cat=8 --format=ids --year=2016)I expect the above to work at a snail’s pace which is why I’d love to find a SQL query that I can use in MySQL.
Forum: Fixing WordPress
In reply to: How Do I Bulk Delete Tens of Thousands of Posts?Again, this thread shows what I’m talking about. Rather than simply respond to my inquiry with a snippet showing how to specifically delete all posts in a single category or before a specific date/ID I get nothing but a general link to use CLI.
That CLI link doesn’t tell me how to do what I need to do. It seems all too often staff members of companies like WordPress will only respond with links to broad things that might point in the right direction but without going far enough to actually work.
Please have a WordPress staff member post exactly how to remove all posts in a specific category or before a specific date/ID number. I should have to research how to use CLI, learn the syntax, and figure it out for myself when surely a WordPress staff member could post exactly how to do it.
Forum: Fixing WordPress
In reply to: How Do I Bulk Delete Tens of Thousands of Posts?Thanks, but that link is more of what I’m talking about. It lists just three specific examples which are the deletion of a single post, all pages, and all posts in the trash. Then it has big list of parameters which assumes the reader understands the syntax.
They need to add an example for deleting a range of posts from a specific category. If I want to remove all posts from a category named Uncategorized between post number 1 and post number 50,000. Deleting all posts in a specific category before a specific post would also work for me in this case.
- This reply was modified 3 years, 7 months ago by wpbroken2much.
Forum: Fixing WordPress
In reply to: How Do I Bulk Delete Tens of Thousands of Posts?How do I delete using CLI?
Forum: Fixing WordPress
In reply to: Unknown WordPress Plugin Not Closing MySQL ConnectionsHow would I be able to tell which statement it is? I can access the process list but all the processes are sleeping and don’t show anything in the info field.