The MU forums have moved to WordPress.org

Getting tag cloud to show links to pages as well as posts (6 posts)

  1. ThinIce
    Member
    Posted 17 years ago #

    Hi all

    I've setup the tagging solution kindly provided by http://code.danalog.nl/ which we've got working fine for posts. However it doesn't also link to pages that have been tagged (unless I've set it up wrong (*ducks*)...)

    Having had a quick look through the code I believe this is because for pages the GUID field is empty (whereas for posts a full link is in this field) in the wp_[blogid]_posts table and this is what the plugin is using to write out the links? (do please correct me if I'm wrong).

    Whilst we can probably hack something in so that this field is populated for pages, myself and my co developer are quite new to developing for wp / wpmu so would be grateful for any suggestions on the proper use of this field, or a proper way to build a link from the plugin as obviously we want to deviate from the standard structure as little as possible.

    Many thanks in advance

    Thin

  2. Radecki
    Member
    Posted 17 years ago #

    you probally already did this but it's not gonna hurt, In the instructions for simple Tagging i noticed step 4:

    Go to Wordpress Admin > Options > Permalinks and press the button to update the permalink structure. Very IMPORTANT - if you fail to do this clicking on a tag in a tag cloud will return an empty result

    http://trac.herewithme.fr/project/simpletagging/wiki/Installation

  3. ThinIce
    Member
    Posted 17 years ago #

    Thanks for the reply :)

    oddly enough I don't remember having done that :p have gone in and updated it now just to make sure.

    However before doing so (and still now) the tag cloud appears to work fine for posts, but not produce a link for pages that have been tagged (presumably because it creates the links for this from the GUID field). To expand on this it creates the link in the tag cloud, but then no pages are listed in the following page.

    I may just be missing something obvious however (like a note in the docs that says it doesn't support tags on pages ;) ), so will go have another read of that / the code

  4. lunabyte
    Member
    Posted 17 years ago #

    How old is that plugin? Is it compatible with WP 2.1+?

    Reason I'm asking, is that page handling/labeling in the DB changed at this point, so it may be looking for something, not seeing an expected result, and so continuing on.

    Best bet would be to ask the plugin author.

  5. Radecki
    Member
    Posted 17 years ago #

    I was looking for a tagging solution and stumbeled on your post and have since added the simple tagging plugin that is required for the danalog tags. I have been setting it up on my wpmu installs and came across a very curious checkbox you might be interested in...

    In the simple tags admin tab "tags" then -> related options tab about halfway down the page thier is a checkbox that says "Include pages in related posts list:" , sounds like waht you are looking for.

    P.S. The default for this seems to be unchecked

  6. ThinIce
    Member
    Posted 17 years ago #

    Ah - seems to have done the trick, new pages are now created with the GUID field populated, allowing the danalog plugin to pick 'em up.

    Thanks to all who replied.

About this Topic