Conditional Loop for First Page of Categories

Community Forums Forums Design Tips and Tricks Conditional Loop for First Page of Categories

This topic is: not resolved

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  SoZo 1 year, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10844

    brightlaunch
    Participant
    Post count: 7

    I have the following code added to my category page template, pulling in content from a static WordPress page (373) ahead of the category loop. When a visitor navigates to category page 2 and beyond, I only want to show the posts pulled from the loop but not include the content from the static wordpress page. Can you suggest a conditional statement that will accomplish this?

    Thanks,

    Uli

    <?php
    $textsource = 373;
    $textholder = get_post($textsource);
    echo apply_filters(‘the_content’, $textholder->post_content);
    ?>

    #15187

    SoZo
    Moderator
    Post count: 1573

    See this


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.