Support » Plugin: Flip Pong V » Showing Category

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Thiago Quadros

    (@tmquadros)

    Sorry, no posts matched your criteria.

    Plugin Author tambourdeville

    (@tambourdeville)

    Hi!
    Native categories work only with posts. You can’t search for flip-pong like that, because it’s a custom post type.
    I guess you’ll have to do a custom query, searching for “flip-pong” postype, and you’ll be able to add a category filter.

    Thread Starter Thiago Quadros

    (@tmquadros)

    ** Solution

    /********************* Add flip book to post query ********************/
    // Show posts of ‘post’ and ‘flip_pong’ post types on home page
    function add_my_post_types_to_query( $query ) {
    if ( !is_admin() && !is_preview() )
    if ( (is_home() || is_category() || is_tag() || is_archive() || is_feed() ) && $query->is_main_query() )
    $query->set( ‘post_type’, array( ‘post’, ‘flip_pong’ ) );
    return $query;
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Showing Category’ is closed to new replies.