WordPress.org

Ready to get started?Download WordPress

Forums

Post Tags and Categories for Pages
How can you view categories on the Pages? (7 posts)

  1. Martan
    Member
    Posted 1 year ago #

    I see how to create categories and tags on the Edit page. But, don't know how to view this on the "front" page.

    http://wordpress.org/extend/plugins/post-tags-and-categories-for-pages/

  2. curtismchale
    Member
    Plugin Author

    Posted 1 year ago #

    That is entirely dependent on your theme. You will need to find the php file that displays your pages (probably page.php) and then use the_tags() to show the tags on the page.

  3. Martan
    Member
    Posted 1 year ago #

    I'm using a template. Is there a way to alter the template to display categories and tags?

  4. curtismchale
    Member
    Plugin Author

    Posted 1 year ago #

    Yes there is, but it's outside of the support I can provide here. I'd talk to your theme developer or if you purchased the theme talk to the support there about modifyng the theme.

    If it's a free theme then talk to the theme author about the changes you'd like to make. They will know the files that you need to change - and I simply have no idea because I didn't write your theme.

  5. Bram
    Member
    Posted 1 year ago #

    Hi Curtis,

    I'm still struggling to retrieve the categories of the post. For tags, the_tags() works perfectly and the_category() also displays the categories of a particular page as hyperlinks, but I'd like to have these in an array. Functions as wp_get_object_terms() or wp_get_post_categories() do not work. Any idea on how to solve this?

    Many thanks,
    Bram

  6. curtismchale
    Member
    Plugin Author

    Posted 1 year ago #

    Please start a new topic instead of tacking on to some other post.

    I'd also need to see code to help. I tested all the functions I could think of when I built the plugin (I do not remember each and every one off the top of my head) and had no issues.

  7. Bram
    Member
    Posted 1 year ago #

    Thanks for your reply. No clue why it wasn't working yesterday, but print_r(get_the_category()); now indeed displays the array I was looking for.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.