Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // around line 104, class-xydac-post-type-functions.php, UCMS 0.2
- function xydac_posts_home( $query ) {
- if ( !is_preview() && !is_admin() && !is_singular() && !is_404() ) {
- $args = array(
- 'public' => true ,
- '_builtin' => false
- );
- $post_types = get_post_types( $args );
- // ORIGINAL:
- //$post_types = array_merge( $post_types , array( 'post' ) );
- // JR HACK:
- $post_types = array_merge( $post_types , array( 'post', 'page' ) );
- $my_post_type = get_query_var( 'post_type' );
- if ( empty( $my_post_type ) )
- $query->set( 'post_type' , $post_types );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement