Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1018248
    alockettjr
    Participant

    On my site I have a single container which shows the most current post. I have a pill shaped span below it which shows the category. Currently this is just hard coded
    i.e. <span class=”difficultyTag”>Beginner</span>

    I would like to get this automatically so I don’t have to change it every time I write a blog post.

    my site is swift cosmonaut.com

    Hope you can help! Thanks!

    #1018314
    Darshana
    Moderator

    Hi there,

    Thanks for writing in! Regretfully, your request is beyond the support we can offer as it would be outside scope. However you may check the following WordPress helper function to get the most recent post (https://codex.wordpress.org/Function_Reference/wp_get_recent_posts) and from there you can find the category.

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-1018248 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>