Support » Theme: Vantage » Display Post from a Category – NO Plugins!

  • Hi, I want to display all the posts from a particular category. I have copied the default ‘Blog’ template and opened it up. This is whats inside.

    if( !get_option( ‘page_for_posts’ ) && get_option( ‘show_on_front’ ) == ‘page’ && get_post_status() == ‘publish’ ) {
    // We’re transitioning away from using the blog page template
    // Automatically update this so it uses the proper system.
    update_option( ‘page_for_posts’, get_the_ID() );
    update_post_meta( get_the_ID(), ‘_wp_page_template’, ‘default’ );

    add_filter(‘option_show_on_front’, ‘__return_false’);
    add_filter(‘siteorigin_panels_is_home’, ‘__return_false’);
    global $wp_query;
    ‘paged’ => $wp_query->get(‘paged’),
    global $more; $more = 0;
    $more = 1;
    remove_filter(‘option_show_on_front’, ‘__return_false’);
    remove_filter(‘siteorigin_panels_is_home’, ‘__return_false’);


    I’m trying to locate the part which selects the category but I cant seem to find it. Can anyone give me a hand?


Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Display Post from a Category – NO Plugins!’ is closed to new replies.