WordPress.org

Ready to get started?Download WordPress

Forums

Diamond MultiSite Widgets
Shortcode Bloglist works fine but Post & Comments Broken (3 posts)

  1. itchyrhino
    Member
    Posted 2 years ago #

    Hi

    The bloglist short code is working beautifully on my site however when I try the short code for recent posts or comments nothing comes up.

    Sample code I'm using:

    Bloglist:

    <?php echo do_shortcode('[diamond-bloglist format="{title}" count="100" order_by="1" order="0"/]'); ?>

    Posts:

    <?php echo do_shortcode('[diamond-post format="{title}"/]'); ?>

    Comments:

    <?php echo do_shortcode('[diamond-comment format="{title}"/]'); ?>

    Any ideas?

    http://wordpress.org/extend/plugins/diamond-multisite-widgets/

  2. itchyrhino
    Member
    Posted 2 years ago #

    Ok I think i might have found something.

    I had to exclude the home blog (id = 1) from the shortcode lists because it is merely a place holder and doesn't have any posts or comments. It seems to have been causing a problem.

    The code I used for all three are:

    Bloglist:
    <?php echo do_shortcode('[diamond-post format="{title}
    {excerpt}
    {author}, {date}" exclude="1" count="10"]'); ?>

    Posts:
    <?php echo do_shortcode('[diamond-bloglist format="{title}" count="100" exclude="1" order_by="1" order="0"]'); ?>

    Comments:
    <?php echo do_shortcode('[diamond-comment format="{title}" exclude="1" count="25"]'); ?>

    All now work fine.

    Hope this helps some people.

  3. IanMeadows
    Member
    Posted 2 years ago #

    Hi

    Sorry if this is a little dumb, but very new to WordPress. I want to add this to the page that is my multisite homepage.

    The root has no posts as each project has a site below that I want to list. I've added this to the HTML in the page:

    <?php echo do_shortcode('[diamond-bloglist format="{title} - {description}" /]'); ?>

    It works for below the list it also shows '); ?> what am I doing wrong, do I need to close or escape the code?

    thanks

    Ian

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.