Listing Shortcode

This topic contains 10 replies, has 3 voices, and was last updated by  Joy 7 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #397559

    Joy
    Buyer
    Post count: 1076

    Hello, I am trying to get a single listing to display at 100% width. I’m calling the listing by a specific tag. Here is my code: [gd_listings post_type=”gd_eat” layout=”1″ post_number=”1″ listing_width=”100″ tags=’featuretest’]

    However, when I load onto the page, the image is small. I would like this to diplay as it normally would with 100% width, where the image is large on top, then the details follow below. Can this be achieved with a shortcode?

    #397560

    Joy
    Buyer
    Post count: 1076
    This reply has been marked as private.
    #397574

    Guust
    Moderator
    Post count: 29970

    Try layout=2

    Thanks

    #397576

    Joy
    Buyer
    Post count: 1076

    Thank you. I tried that as well, but then the listing moves over(as if creating a space for another listing). So then the layout is correct – with the large image on top and the details below, but then it’s smaller instead of filling the space.

    #397583

    Guust
    Moderator
    Post count: 29970

    You are using the wrong shortcode:
    [gd_popular_post_view post_type=gd_eat layout=2 listing_width=100 post_number=1]

    Thanks

    #397587

    Joy
    Buyer
    Post count: 1076

    Thank you. That fixes the layout. But I am unable to invoke a specific listing with the tags?

    I am using this: [gd_popular_post_view post_type=gd_eat layout=2 listing_width=100 post_number=1 tags=featuretest]

    #397590

    Guust
    Moderator
    Post count: 29970

    No, not with the Popular Post widget or shortcode.

    But listing width should work with the gd_listings shortcode too according to https://wpgeodirectory.com/docs/core-shortcodes
    Otherwise add this CSS, target for the correct page:
    .geodir_category_list_view li.gridview_onehalf {
    width: 100%;
    }

    Thanks

    #397768

    Joy
    Buyer
    Post count: 1076

    Hi again, thank you, I was able to target the page with css. I plan to utilize this often on my site. Do you think you can alert Stiofan to this since it should work utilizing the 100% width? That way I won’t have to add css for every blog post.

    Thank you.

    #397771

    Guust
    Moderator
    Post count: 29970

    I got a developer to follow up. Thanks

    #397821

    Kiran
    Moderator
    Post count: 7069

    Hi Joy,

    Please check.
    Now listing_width parameter is also supported in gd_listings shortcode.
    I have updated patch on your site too.

    Kiran

    #397825

    Joy
    Buyer
    Post count: 1076

    Awesome! Thank you!

Viewing 11 posts - 1 through 11 (of 11 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount