WordPress.org

Ready to get started?Download WordPress

Forums

TagPages
[resolved] Output tagged pages based on the creation date of the content? (7 posts)

  1. travelvice
    Member
    Posted 3 years ago #

    Howdy Bernhard & others,

    I just wanted to get a quick usability clarification, if you have a moment.

    It's my intention to tag various pages with country names (like 'Peru' -- these tags likely not shown to the visitor), and output a list of said tagged pages on a primary country page.

    Thus, the Peru page would display relevant content from interspersed pages that might touch on multiple country subjects (such as crossing the border into Ecuador).

    I just wanted to verify that this is indeed not an issue w/ this plugin, and was curious if there was a way to output the results based on the creation date of the content, as opposed to alphabetically?

    Cheers,

    //craig

    http://wordpress.org/extend/plugins/tagpages/

  2. Bernhard Riedl
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Craig,

    TagPages enables WordPress with post-tags functionality for pages. In other words, most of the WordPress default functions for tags can be used.

    As described in the FAQs you could include a call to the built-in template tag get_the_tags to retrieve the tags associated with a certain page. You could then implement for example get_posts to query for the related posts/pages of the tags-list you've retrieved before.

    Please note, that WordPress does not store any date information with your tags, though pages have various timestamp fields in the database which you can use for your purpose.

    If you don't like to do this by hand, I'm pretty sure there are some plugins out there which you can combine...

    greetz,
    Berny

  3. travelvice
    Member
    Posted 3 years ago #

    Thanks for your thoughts Berny. I've certainly no issues with crafting by hand.

    Regarding get_posts, would using an 'orderby'=>'post_date', 'orderby'=>'date', or 'orderby'=>'modified' result in the desired output?

    //craig

  4. Bernhard Riedl
    Member
    Plugin Author

    Posted 3 years ago #

    if there was a way to output the results based on the creation date of the content

    'orderby' => 'date' which also seems to be the default of get_posts

  5. travelvice
    Member
    Posted 3 years ago #

    Great! Thanks Berny, looking forward to leaning on your plugin a great deal in the near future.

    Cheers,

    //craig

  6. Bernhard Riedl
    Member
    Plugin Author

    Posted 3 years ago #

    No worries. - A rating would be nice... :)

  7. travelvice
    Member
    Posted 3 years ago #

    done, sir. ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags