WordPress.org

Ready to get started?Download WordPress

Forums

Category Grid View Gallery
Generate shortcode for single.php (Theme template) (4 posts)

  1. phattrance
    Member
    Posted 11 months ago #

    I wonder if its possible to make this plugin generate shortcode so that i can add it to my single.php template? i tried the following shortcode but it didnt work

    [cgview id=1 num=6 orderby=rand size=160x160]

    What im looking for is to have this plugin generating random images below my post in single.php so that it works something similar to "Related content" plugins.

    http://wordpress.org/plugins/category-grid-view-gallery/

  2. JAZIP
    Member
    Posted 9 months ago #

    Hi!

    I want to do a similar thing with this plugin. Did manage to get it to work?

  3. phattrance
    Member
    Posted 9 months ago #

    Jaz-- > this code worked for me. edit the shortcode tho!

    <?php
    echo do_shortcode('[cgview id=1 size=140x140 num=12 orderby=rand showtitle=always lightbox=0]'); ?>

  4. JAZIP
    Member
    Posted 9 months ago #

    Works like a charm! Thanks man!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.