WordPress.org

Support

Support » Plugins and Hacks » Post Tags and Categories for Pages » How can you view categories on the Pages?

How can you view categories on the Pages?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author curtismchale

    @curtismchale

    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.

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

    Plugin Author curtismchale

    @curtismchale

    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.

    Bram

    @bramos_ditaljanos

    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

    Plugin Author curtismchale

    @curtismchale

    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.

    Bram

    @bramos_ditaljanos

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How can you view categories on the Pages?’ is closed to new replies.
Skip to toolbar