WordPress.org

Forums

Flip Pong V
[resolved] Showing Category (4 posts)

  1. Thiago Quadros
    Member
    Posted 1 year ago #

    I would like to display a list of flipbooks by clicking on the category.
    By clicking on the category, the page not found message is displayed.

    http://wordpress.org/plugins/flip-pong-v/

  2. Thiago Quadros
    Member
    Posted 1 year ago #

    Sorry, no posts matched your criteria.

  3. tambourdeville
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  4. Thiago Quadros
    Member
    Posted 1 year ago #

    ** 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;
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Flip Pong V
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic