• Resolved infinityx78

    (@infinityx78)


    conditional_title_tag, and conditional_title_class are very convenient for formatting the custom title. I would like to be able to do this for the catname.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor zymeth25

    (@zymeth25)

    Hi @infinityx78

    The documentation says

    catname – Show the title of the category (or categories), works exactly as catlink, but it doesn’t add a link to the category.

    I know this is not obvious, but it really works exactly as catlink, to the extent that you can use catlink_tag and catlink_class together with catname=yes and it will work exactly the way you want ?? Cheers

    Thread Starter infinityx78

    (@infinityx78)

    Ah, yes, that appears to be what I want. I now see catlink_tag and catlink_class under https://github.com/picandocodigo/List-Category-Posts/wiki/HTML-&-CSS-Customization. I missed these options because I usually refer to https://github.com/picandocodigo/List-Category-Posts/wiki/More-parameters-you-can-use.

    There seems to be a bit of inconsistency between conditional_tag/class, and catlink_tag/class. If I use conditional_title=Test conditional_class=widget-title, I will get what I want: <h3 class="widget-title">. However if I similarly do catname=yes catlink_class=widget-title, I will only get a <strong>. If I specify a catlink_tag with it like catname=yes catlink_tag=h3 catlink_class=widget-title, then I will get what I want: <h3 class="widget-title">. I was wondering why for conditional_title I didn’t need to specify conditional_title_tag to get what I want, but I had to specify catlink_tag for catname. I am guessing it’s because conditional_title_tag defaults to h3, while catlink_tag doesn’t default to anything?

    Thanks for responding and for this very thorough and well documented plug-in!

    Plugin Contributor zymeth25

    (@zymeth25)

    I am guessing it’s because conditional_title_tag defaults to h3, while catlink_tag doesn’t default to anything?

    Yes, conditional_title_tag defaults to h3 but catlink_tag defaults to strong.

    And yes, what you observed is a bug that makes catlink_class work only if you specify catlink_tag, otherwise you just get the default strong. This is already a known bug and should be fixed in future releases.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘feature request: catname_tag, catname_class’ is closed to new replies.