Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Posts Disappear #3

Closed
crashwave opened this issue Sep 13, 2013 · 1 comment
Closed

Custom Posts Disappear #3

crashwave opened this issue Sep 13, 2013 · 1 comment

Comments

@crashwave
Copy link

In functions.php

function childtheme_override_index_loop()

on line 479

query_posts(array("post__not_in" =>get_option("sticky_posts"), 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1 )));

removes all custom posts which are enabled by plugin/function to show custom posts on home page. When plugin enabled the Custom posts are shown when the parent thematic theme enabled.
I have commented the line out for now.

@crashwave
Copy link
Author

Using the simplified Custom Post Types in the Main Query here http://codex.wordpress.org/Post_Types#Custom_Post_Types_in_the_Main_Query exactly as written with

query_posts(array("post__not_in" =>get_option("sticky_posts"), 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1 )));

is the problem. I had to rewrite the function for Custom Post Types in the Main Query a little to get it to show the custom post types with the query_posts above, as without it they are double posted b/c flexslider as you said. (sorry didn't have a sticky when testing earlier and never used flexslider)
So if anyone having problem displaying the custom posts on home page tweak the example on WP a little.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant