Alex
Forum Replies Created
-
Forum: Plugins
In reply to: [There Can Be Only One] More Sticky posts at the same timeHi Vincent, the plugin doesn’t currently have that capability built in, and I won’t have time to add it as a configurable option in the foreseeable future. Sorry. :/ It isn’t a straightforward modification, but it is open source, so you’re always welcome to fork it and update it if you’d like.
Alex
Forum: Fixing WordPress
In reply to: Can't update WordPress – SSL certificate problem – error:14090086:SReplacing the current
wp-includes/certificates/ca-bundle.crtwith the one from core did the trick for me as well. Thanks for the help everyone.Forum: Plugins
In reply to: [There Can Be Only One] Doesn't Unstick Posts in WordPress 4.2 AlphaGlad to hear it, thanks for posting Jeff!
Forum: Plugins
In reply to: [There Can Be Only One] Doesn't Unstick Posts in WordPress 4.2 AlphaI think I discovered the issue, or at least I found one that sounds similar. Modifying already published posts to make them sticky doesn’t remove that flag from other posts.
I’ve made the changes, so you should see a new version (1.0) in the plugin updates list.
Thanks again!
Forum: Plugins
In reply to: [There Can Be Only One] Doesn't Unstick Posts in WordPress 4.2 AlphaI haven’t had a chance to test 4.2 Alpha, but did test this on 4.1.1 on my local environment and didn’t run into the issue you outlined, Jeff. I tested two scenarios, in this order:
1. A previous post was already marked as sticky and sat at the top of the site. I scheduled a new post and marked it as sticky. When the post published, the old post had the sticky flag removed and the new one sat at the top, still with the sticky flag.
2. I then immediately published a new post with the stickyflag set. The post from step one had its sticky flag removed and this one kept it.Are your steps similar? Also, do you have any other sticky-related functionality set up on your site that I should look into for conflicts?
Thanks again Jeff!
Forum: Plugins
In reply to: [There Can Be Only One] Doesn't Unstick Posts in WordPress 4.2 AlphaThanks Jeff, I’ll check it out!
Forum: Hacks
In reply to: publish_future_post not runningmarking as resolved
Forum: Hacks
In reply to: publish_future_post not runningIt took me a bit longer to wrap up the submission and posting, but I’ve published a plugin for this functionality: https://wordpress.org/plugins/there-can-be-only-one/.
Thanks again Devin!
Hopefully this will be useful for others running into the issues I hit.
Forum: Hacks
In reply to: publish_future_post not runningAwesome, thanks Devin! I’m working on a similar solution to specifically address the issue with multiple scheduled sticky posts as well. One of the things I discovered is that $_POST[‘sticky’] is populated when a post is immediately published, but not when it is moving from scheduled -> published. Whereas is_sticky($post_id) is exactly the opposite, so I’m now accounting for that. I’ve also had to account for whether $post_idis actually the post ID or a revision of the post. In the latter, I reset it to $post_id->ID. I think I’m well on my way, thanks in huge part to your help! I’ll post completed code once I have it in a cleaner state.
Thanks again!
Forum: Hacks
In reply to: publish_future_post not runningThanks Devin, this is close, but doesn’t quite meet my needs, as scheduling a sticky post results in removal of the sticky flag from the currently live sticky post. My goal is to always have one visible on the site. I tried to add a bit of logic to determine if the post being processed is scheduled or not, but I can’t find a way to access the post ID at the time this code is run, and thus cannot check the post’s status. Any advice on how to do that?
Thanks!
Forum: Fixing WordPress
In reply to: Filters not returning modified contentI eventually tracked it down to how FeedWordPress implements it’s filters. Removing them did the trick:
/*! Disable FeedWordPress Filters */ function clean_up_feedwordpress() { remove_filter('the_content', 'feedwordpress_preserve_syndicated_content', -10000); remove_filter('the_content', 'feedwordpress_restore_syndicated_content', 10000); } add_action('wp','clean_up_feedwordpress');This could cause issues for others, depending on the source of the feed, but I can control what comes through my feeds, so no major issues,
Forum: Fixing WordPress
In reply to: Filters not returning modified contentHi birgire, thanks for the fast reply and helpful code snippets. Both filters are executing properly and the function logic is correct. When I echo
$contentwithin the function, I see the post content twice – the first being the modified content, the other being the original, non-modified content. I’ve actually echoed it out prior to the logic, within the logic and right after the logic, before thereturn, and the rendered page shows original content, modified content, original content.Your show_all_filters snippet is very useful, thanks! It shows that
custom_pinterest_contentis executed on a single post as expected. The problem appears to only be thatreturn $contentisn’t overwriting the actual post content when output.One solution is to add this line to wp-config.php, which will disable loading all scripts for NextGen Gallery, though you will then need to load the ones you do want.
define('NGG_SKIP_LOAD_SCRIPTS', 'true');This ensures that the plugin can still be upgraded, though it adds some complexity if you want to be able to easily change which slideshows are used on your site.
Forum: Plugins
In reply to: wp-o-matic RSS plugin being sold by ownerWell that’s a shame. I’ve been waiting on this new release for close to a year now. I’ve been using wp-lifestream in the meantime, and while it’s a good plugin, it doesn’t provide the flexibility nor ease of use I’d like (not the Dev’s fault – my uses are different than his goals I think).
I’d love to see someone take it on, but in all honesty, there’s no way it’ll go for anywhere close to 60,000, especially given the lack of activity of late. I’d gladly pay for a good plugin to meet my needs, so hopefully someone will create one.
Thanks for posting that link, I had no idea.
Forum: Fixing WordPress
In reply to: Theme Resets & DB ErrorThanks for the response samboll!
How would a dropped DB connection cause the theme reversion issue? The proper theme choice should was used for a while, so the right option was stored in the DB. I haven’t seen any other data loss or corruption, so I’m a bit confused how one option would be modified..?
I’ll ask my host about DB modifications and reboots too.
Cheers!
Alex