packjazz
Forum Replies Created
-
But this is about the plugin….I have the plugin installed on WordPress multisite and the emails are being sent to my WordPress multisite subsite users. I’ll contact the regular support, but these seems like a plugin issue to me, because this issue only happened after I updated the plugin.
Yes, looks good, thank you!
Okay, thanks for the heads up! I hate to not update since it was a security patch. I may update and then try to manually add the fix and hope they put it inot the 4.4.2 release.
Perfect, that worked, thanks!
Forum: Hacks
In reply to: Add meta value to custom post on publishYeah, the post type is registered in the theme. But thanks for verifying that the code is right, seems it’s just something funky going on with the current theme. I’ll see if I can find another way to accomplish what I’m looking to accomplish. Thanks for your help!
Forum: Hacks
In reply to: Add meta value to custom post on publishAlso note I have disabled all plugins as part of troulbeshooting and that didn’t help. I just need to figure out why the function isn’t passing the post id properly.
Forum: Hacks
In reply to: Add meta value to custom post on publish@ryan – Yes, I’ve confirmed that I’m using the right name for the custom post type, dash and ‘s’ included. And we know what I have is at least partially correct because it does infact create a new DB record any time I publish a custom post of that type. The one missing thing is that the post_id is recorded as 0 instead of the actual id of the post that was published.
I tried that simplified version (which I had tried before in a slightly different configuration) and it doesn’t work. It doesn’t even add a new record to the DB.
I’m starting to feel like this is an issue with how the theme is configured (it’s a complicated membership site set-up that I wasn’t involved in). I’m just having a hard time even knowing where to begin to look to figure it out.
Forum: Hacks
In reply to: Add meta value to custom post on publish@ryan – Right. They should. And some of them are, but not all of them. There’s no rhyme or reason as to why some custom posts do get added to the sitemap and some don’t. We’ve spent quite a lot of time trying to figure out why, but we have gotten nowhere. The only way to ensure that posts get added to the sitemap is to select the option to force it on to the sitemap. My client wants this to happen automatically, hence the need for this function to work. It should work according to the codex documentation, but it isn’t producing a post ID.
Forum: Hacks
In reply to: Add meta value to custom post on publishI have tried using ID like this:
function on_jobs_publish( $ID ) { global $wpdb; $wpdb->insert( $wpdb->prefix.'_postmeta', array( 'post_id' => $ID, 'meta_key' => '_yoast_wpseo_sitemap-include', 'meta_value' => 'always' ), array( '%d', '%s', '%s' ) ); } add_action( 'publish_custom-jobs', 'on_jobs_publish', 10, 1 );But it didn’t work. It didn’t even add a new record into the DB. At least with $post it added a new record…the only problem is the record’s post_id was 0.
Ryan, is there anywhere I can donate money to the plugin as a thank you for your quick response?
Thanks Erin and Ryan!
Forum: Fixing WordPress
In reply to: Widget Areas misbehaving in WP 3.6.1Turns out it was a plugin causing the problem.