This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Shortcode: Post Grid showing link despite "false" setting

  • Creator
    Topic
  • #654
    tonim7
    Member

    Working on using shortcode in an external page that is linked to a Tab in a Layout.
    I would like the post_grid shortcode to work similar to Mini Post Grid Widget
    For visual reference I have the two scenarios in my working page: Tabs and Content.
    Eventually Content will be removed.
    http://nikotrack.com/wordpress/

    The external page shortcode is
    [one_half last][post_grid columns=”2″ rows=”2″ categories=”home page” orderby=”post_date” order=”DESC” offset=”0″ link=”false” link_target=”_self”] [/one_half]

    1. However the link is both showing and active….?
    2. The Pretty Photo shows 8 images, looping thru the 4 images twice. This happens in both scenarios, the external page shortcode and the mini post grid widget. There are only 4 posts in the category…?

    Is there any tutorial or info on using the shortcode? I have only found the screen grab.
    Thanks for your help
    Toni

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #656
    tonim7
    Member

    In addition to my questions above, I am also trying to add a Post_Grid to another external page to show products.
    http://nikotrack.com/wordpress/select-nikotrack-trolley-fittings/

    How can I get the thumbnail to
    1. be square (similar to small in Widget Mini Post Grid)
    2. show the image thumbnail as seen in Media Thumbnail
    3. only show category ‘trolley fittings’ in the Pretty Photo loop
    4. show text content in the Pretty Photo enlargement (tried adding a to post html, did not show)

    Also, there is a link at the bottom of the grid ‘View all Posts’ that links to Google.com..?
    Where did it come from and how can I remove ?

    Thanks again for your help (and patience!)

    #661
    Jason Bobich
    Keymaster

    1. However the link is both showing and active….?

    This is because you’re misunderstanding what the “link” parameter is doing. It’s hiding the link that would show after your grid of posts that would lead to whatever page you choose.

    For example, you might have a post grid, and then after you want a link that says “View Full Portfolio” or something. So, that is what you’re currently hiding.

    I do understand the confusion in the wording of the framework’s option in relation to coincidently this theme’s post grid design placing the linked titles after. — “Select whether to show a link after your posts or not.”

    However, keep in mind that the framework shortcodes for displaying posts will not generally have options that specifically switch items in each post on or off because each theme could potentially have a different post grid design. Any options built into the theme for how posts in a post grid display in general can be found at Appearance > Theme Options > Content.

    But why not just use a gallery? If you’re going to have a 4 images that open in a lightbox and don’t link to a full posts at all, why have a post grid at all?

    The Pretty Photo shows 8 images, looping thru the 4 images twice. This happens in both scenarios, the external page shortcode and the mini post grid widget. There are only 4 posts in the category…?

    This is because prettyPhoto is taking all images currently on the page with the gallery parameter. So if you look at your homepage as a whole, you have 9 images on the page linking to the prettyPhoto gallery, and some are duplicates.

    Is there any tutorial or info on using the shortcode?

    This is from your documentation that came with your theme: https://vimeo.com/32722378

    How can I get the thumbnail to
    1. be square (similar to small in Widget Mini Post Grid)
    2. show the image thumbnail as seen in Media Thumbnail

    Just use WordPress’s gallery shortcode if that’s all you’re doing. Why use a post grid at all — https://vimeo.com/16686184

    3. only show category ‘trolley fittings’ in the Pretty Photo loop

    If you use the gallery shortcode, this will be done automatically for you. A unique ID will be used for prettyPhoto and that grouping of images. It’s different when you’re doing a post grid because there’s no unique ID to use; they’re just images being inserted on the page.

    4. show text content in the Pretty Photo enlargement (tried adding a to post html, did not show)

    If you’re using the gallery shortcode, I believe this will pull the title from each attachment automatically. You setup the title of each attachment in WordPress’s media uploader.

    #761
    tonim7
    Member

    Thank you. I have been following your suggestions.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The forum ‘Swagger Responsive WordPress Theme’ is closed to new topics and replies.