WordPress.org

Ready to get started?Download WordPress

Forums

The global "tags" blog creates duplicates (10 posts)

  1. dmanakho
    Member
    Posted 2 years ago #

    Hi,
    We've upgraded to WordPress 3.2.1 and see an interesting behavior that I don't believe we've seen before the upgrade.

    This is a multiblog server and we use "Global tags" feature.

    It appears that many posts are being duplicated in the "global tags" blog.
    I know what causing it.
    When user creates a new post in his blog this post is saved in the "global tags" blog. And each time the user hits update button on the post a new post is created and saved in the "global tags" blog.

    Follow this link for the example:
    this is a single post in my personal blog
    http://discovery.caryacademy.org/dmitry_manakhov

    Here it gets replicated multiple times in the Global Tags blog because i pressed Update button several times
    http://discovery.caryacademy.org/2011/blog/tag/goanimate/

    Is it by design or a bug? Is there anything i can do to disable redundant blog posts in the "Global Tags" blog?

  2. Which plugin were you using?

    There is no 'global tags' feature in MultiSite anymore (there was in WPMU I think).

  3. If you are using the sitewide tags plugin to make a tags blog, update the plugin.

  4. regiaodeaveiro
    Member
    Posted 2 years ago #

    Hi!
    Can I use the sitewide tags to display a tag cloud in de main site?
    And if so, is there any trick for that?

    cheers

  5. yes you can use it for that. just feed the posts ot the main site and use a tag cloud widget.

  6. regiaodeaveiro
    Member
    Posted 2 years ago #

    maybe I didn't exppress myself the best way..

    I wish to ask if I can use the sitewide tags to display, in de main site, a tag cloud ... with all the tags used in the network?

    thanks

  7. regiaodeaveiro
    Member
    Posted 2 years ago #

    I don't whant the posts on the main site, just the tags.

    thanks

  8. dallasm
    Member
    Posted 2 years ago #

    Use sitewide tags to aggregate all the posts (and tags to the main blog).
    Use general settings to use a page as your front page, and set the posts page at another page.
    Don't have a link to the posts page if you don't want people to see it.

    Alternativly, if you want to run a blog on the main site,
    create a separate sitewide tags blog. (default is tags).

    Use the switch to blog and the wordpress tag cloud function http://codex.wordpress.org/Function_Reference/wp_tag_cloud to display the tag cloud widget in the sidebar on your main site (code into theme or maybe use html in text widget?)

    Something like this should do it (I haven't tested this and maybe someone more knowledgable can add detail or caveats.

    switch_to_blog(BLOG#HERE)
    <?php if ( function_exists('wp_tag_cloud') ) : ?>
    <li>
    <h2>Popular Tags</h2>
    <ul>
    <?php wp_tag_cloud('smallest=8&largest=22'); ?>
    </ul>
    </li>
    <?php endif; ?>
    restore_current_blog()
  9. Caveat: using switch_to_blog on the front side of your site is resource expensive

  10. dallasm
    Member
    Posted 2 years ago #

    I've noticed that too. what's the best way to do this?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.