WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Plugin for a 'cloud' looks more like, well ... a list? (7 posts)

  1. Sam
    Member
    Posted 7 years ago #

    Hi folks... I am trying to use mapellis 'category cloud plugin. I have it active on three sites, using two different themes, and in all three it is resolving as a list. I cannot understand where the 'break' tags after each category are coming from? (Nor can the plugin author) Any suggestions would be helpful, please?

    The offending pages are here, here and here

  2. hanilovesme
    Member
    Posted 7 years ago #

    Have you modified the plugin php file at all? I've just looked at the source code for your implementations of the tag cloud, and they do have a <br> after each link. However, the plugin source code doesn't seem to be spitting out any <br>s at all...

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    It looks like you're running the category cloud inside a post or a page or something, using a plugin like RunPHP or PHPExec or what have you.

    This is where the BR's and the P's are coming from. Because you're running it in a post, it's going through the normal WordPress post filters, which adds that sort of thing.

    Instead of running the code in a post, put it in a page template or in the sidebar or wherever you want it to be. Putting PHP code into posts/pages is usually a bad way of doing things.

  4. mythusmage
    Member
    Posted 7 years ago #

    It does the same thing in the footer.

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    What footer? In all three of those "offending pages" above, he's put the code into the Post/Page content, not into the footer.

  6. Sam
    Member
    Posted 7 years ago #

    fyi hanilovesme - No, I haven't modidfied the plugin code.

    re: Otto42 - Thanks mate, that sounds like the direction I need to go. I do have them all in a 'page', and yes I am using runphp.. haven't had any problems with wp-email and a couple of other trinkets running in pages, but it sounds like your on the money. Will try my hand at page templates later and see what happens. Cheers. :)

    re: mythusmage - It doesn't do it in the footer or sidebar. I switched it around and tried it in different places before I posted and it was only in a post or page that I had this problem (unless you meant on your site, then that's a whole new story)

  7. Sam
    Member
    Posted 7 years ago #

    I now know that page templates are easy ... and it worked a treat, all fixed. Woot! Thanks Otto42.

Topic Closed

This topic has been closed to new replies.

About this Topic