Change/Remove tag's link title & Add conditional text on tag's page!

dev.xiligroup est en travaux Forums xili-tidy-tags plugin Change/Remove tag's link title & Add conditional text on tag's page!

Ce sujet contient 0 réponses et 2 voix, et a été mis à jour par  Anonyme il y a Il y a 12 ans, 10 mois.

Visualisation du message 2 (1 sur 2, 2 au total)
  • Auteur
    Articles
  • #2900

    Anonyme

    Your ideas can be added to roadmap…but it is totally impossible to forecast a timing according our very busy professional agenda..

    Best regards

    #2912

    Anonyme

    Hey Michel,

    Thanks for your reply, I really appreciate it :)

    I managed to find some solutions to the questions in this topic, I’ve found a workaround for q #1, in case anyone would like to achieve the same, use the code below:

    ‘<?php

    xili_tidy_tag_cloud( array( ‘topic_count_text_callback’ => ‘my_count_text_callback’, ‘format’ => ‘FormatType’, ‘tagsallgroup’ => ‘TagsGroupName’, ‘largest’ => ’10’, ‘smallest’ => ’10’ ) );

    function my_count_text_callback($count)

    {

    return sprintf(_n(‘%s CustomTitle’, ‘%s CustomTitle’, $count), number_format_i18n($count));

    }

    ?>’

    Where:

    – FormatType: is the format type of your choice, i.e: list

    – TagsGroupName: the name of tags group you’d like to show, in case you’d like to show all tags groups, remove this element all together

    – CustomTitle: the custom tooltip title you want to replace x(topic’s’) with

    This should work for your if you put it anywhere in your theme, in case you want to do it within a specific page or post, you’ll need a plugin like exec-php to be able to execute PHP inside posts and pages

    Hope this will help someone searching for the same result :)

    So far, I am currently working in a solution for question #2, if I am to find any working one, I’ll post it here…

Visualisation du message 2 (1 sur 2, 2 au total)

Vous devez être connecté pour répondre à ce sujet.