Custom Post Type not working
-
I am using your code from previous post, want to publish Sermons from the Sermon Manager plugin.
My code is
if((get_post_type($my_post->ID) != 'post') && (get_post_type($my_post->ID)) != 'Sermon') { // only do this for posts and sermons return;
Normal posts still are publishing so I’m assuming the post ID is not actually ‘Sermon’. Any idea how I would determine the correct type?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom Post Type not working’ is closed to new replies.