Support » Plugin: WP AMP Ninja » Custom Taxonomy category/archives header

  • Resolved jetcub


    Hi guys,
    Love the plugin, it’s the first one that’s actually done what it’s supposed to do without any fuss, great work guys!
    Just wondering if you can help with a little feature I’ve been trying to get working.
    I use category archives for my custom taxonomy on my site. I have used a little plugin that allows me to edit the category description using html (plugin called Visual Term Editor), so at the top of my category pages I can have a little bit of text which helps my SEO.
    I’m using your plugin to AMP these category pages, but can’t get the category description to come up. Can you give me a little guidance for what I could look out for (I’m a trial and error coder – it takes me weeks but I eventually get the job done 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WP Tech Ninja


    Hi jetcub,

    Here are the steps to display category description to your AMP category pages.

    – Open the file includes/wpamp-functions.php
    – find for the function wpamp_page_header() and
    – add this line

    $sOutput .= the_archive_description( '<p>', '</p>' );

    below the line

    $sOutput = the_archive_title( '<h2>', '</h2>' );

    Thank You.

    Hi wptechninja,
    Apologies for the late reply, I’ll give this a try and let you know the results in case someone else needs to do it.
    Many Thanks!!

    Plugin Author WP Tech Ninja


    Thanks for your support!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Taxonomy category/archives header’ is closed to new replies.