[resolved] into-the-loop "filed under" for PAGES (2 posts)

  1. ELAN42.com
    Posted 8 years ago #


    In the loop, I have a "Filed Under <?php the_category(', '); ?>"

    But that produce output also for the PAGES...

    Also, that function displays an output itself and do not returns a string to concatenate with other text.

    Someone have an example that succesfully exludes ONLY pages? (for example a template that displays POSTS in it's code for me must show the "filed into" string).

    Also, how I do I work with that functions that shows strings instead of giving them to me?

  2. moshu
    Posted 8 years ago #

    1. See Template_Hierarchy. The short answer is: make a page.php template file (e.g. saving your index as page.php) and edit it as you like.

    2. Someone else might know the answer for the string question...

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.