Forums

sorting a tag cloud by tag slug (2 posts)

  1. EBarney
    Member
    Posted 1 year ago #

    I want to create a tag cloud that I can sort by slug (I don't mind doing some coding to make that happen) and I also want to exclude certain tags, but I want to do that from the widget settings (I need others to be able to exlude more without doing any coding).

    The built in tag cloud doesn't allow either option. I've found a few tag cloud plugins that have exclude settings and got one of them to work for me. The one I'm currently using also allows me to change the sort order, but only between by count and by name.

    Is there a way to redirect a name sort to a slug sort? I'm not terribly familiar with this kind of coding, but I'm willing to experiment if I can get some pointers in the right direction.

    Here are the previous posts I've looked at (not sure how to combine them to get what I need):

    I'm running 3.0.1 for this site. The plugin I'm currently using is Random Tags Cloud Widget, though I also tried to use Ultimate Tag Cloud Widget (currently troubleshooting issues with it here)

  2. MichaelH
    Volunteer
    Posted 1 year ago #

    Have you tried

    wp_tag_cloud('orderby=slug');

Topic Closed

This topic has been closed to new replies.

About this Topic