• 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?

    https://www.ads-software.com/extend/plugins/diamond-multisite-widgets/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter itchyrhino

    (@itchyrhino)

    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.

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Diamond MultiSite Widgets] Shortcode Bloglist works fine but Post & Comments Broken’ is closed to new replies.