WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Elan42.com
    Member
    Posted 6 years ago #

    Hi...

    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
    Member
    Posted 6 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

Tags

No tags yet.