Forum Replies Created
Viewing 5 posts - 1 through 5 (of 5 total)
-
AuthorPosts
-
esquiveliaMember
Thanks Brad! I'll check it out. 🙂
esquiveliaMemberfunction add_cpt_home( $query ) { if ( $query->is_home() && $query->is_main_query() ) { $query->set( 'post_type', array('post', 'a2n') ); } } add_action( 'pre_get_post', 'add_cpt_home');
Something like this? but not working for me. 🙁
esquiveliaMemberI'm messing with this code:
function reviews_to_archive_loops( $query ) { // we don't want this running on the admin side if ( is_admin() ) return; // include our stream type on tag pages if ( is_tag() && $query->is_main_query() ) { $query->query_vars['post_type'] = array( 'post', 'volvo' ); return; } // include our stream type on category pages if ( is_category() && $query->is_main_query() ) { $query->query_vars['post_type'] = array( 'post', 'volvo' ); return; } // include our stream type on home page if ( is_home() && $query->is_main_query() ) { $query->query_vars['post_type'] = array( 'post', 'volvo' ); return; } } add_action ( 'pre_get_posts', 'reviews_to_archive_loops' );
in the fuctions.php file... but not sure what else I need to do..
esquiveliaMemberAny luck figuring this out?
esquiveliaMemberthe link:
http://spinsheet.com/pride-baltimore-havre-de-grace-next-weekend/Browsers: Yes it happens in all browsers although ie displays an empty square.
Post/Page: Yes; it does not display on the back-end in the editor, just in the browser.
Thanks for the response!
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)