WordPress.org

Ready to get started?Download WordPress

Forums

"Posted in" is buggy (8 posts)

  1. ajs
    Member
    Posted 7 years ago #

    Hello,

    When I create a wordpress page (not post), it does not give me the option of how to categorize it, yet it will say "posted in [category]" at the bottom of all these pages i write.

    this is misleading for one thing, but also because the page itself is of course not included or really filed in the category.. only posts are.

    any ideas what would be causing this?

  2. manstraw
    Member
    Posted 7 years ago #

    you can edit your theme, and remove that bit. it shouldn't be there. if you provide a link, and indicate which theme you're using, i (we) can be more specific.

  3. ajs
    Member
    Posted 7 years ago #

    thanks.. i wasn't sure which theme file to edit for this, as far as one file that effects just pages.

    I'm using the ambiru theme (which i modified, but this was present before modification) and an example page on my site is:

    http://www.justpiano.org/photos/
    or
    http://www.justpiano.org/basics

    thanks for the help!

    Andrew

  4. ajs
    Member
    Posted 7 years ago #

    I am guessing that the same php file, "page.php" is used to present any page whethere it is a page of posts or a wordpress page (does not contain blog entries).

    if so, how could you make just the wordpress pages not have "posted by" and "posted in" text, but keep it there for blog entries, if all pages use the same php structure?

  5. newflesh
    Member
    Posted 7 years ago #

    The standard way of separating single posts and static pages is by using single.php and page.php. If your theme doesnt have both you could try to use the one you have now as single.php and a version without the author/category info as page.php

  6. ajs
    Member
    Posted 7 years ago #

    how will wordpress know to use single.php rather than the current page.php, if i create single.php?

  7. newflesh
    Member
    Posted 7 years ago #

    They are default template files, WordPress looks for single.php first when displaying a post. Some documentation here: http://codex.wordpress.org/Theme_Development#Theme_Template_Files_List

  8. ajs
    Member
    Posted 7 years ago #

    worked like a charm, thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags