project sub category description display

Home Forums Mustang project sub category description display

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18505

    Paul Gailey
    Participant

    project sub category description display

    Resolved

    i’ve gone through the permutations of Mustang widgets to find a combination of one either from the theme or WP that will display sub category descriptions and their links, maybe with the featured image – am i right in assuming that not’s possible unless i write a custom archive or category php file?

    #18508

    Oliver Juhas
    Keymaster

    Hi Paul,

    Widgets do not display such information. Usually, this is left for themes to display a category (or any taxonomy for that matter) description. Mustang does not display those.

    If you want to introduce such functionality to your website, you don’t have to create a theme template file. You can hook to existing actions in the theme and display whatever you want. Here is an example code you can put into your child theme‘s functions.php file to get you started:

    function child_theme_taxonomy_description() {
      if ( is_archive() ) {
        the_archive_description( '<div class="archive-description">', '</div>' );
      }
    }
    add_action( 'wmhook_postslist_before', 'child_theme_taxonomy_description' );

    Best regards,

    Oliver Juhas
    WebMan Design

    #18509

    Paul Gailey
    Participant

    Ok, thats great. I’ll experiment.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.