Post shortcode showing

This topic contains 3 replies, has 3 voices, and was last updated by  Tilen 4 years, 10 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #496517

    Tilen
    Expired Member
    Post count: 120

    Hello,

    I want to display 8 or 6 places on first page based on category.

    I’m building my homepage with php shortcodes:

    ‘<div class=”row”>
    <div class=”col-md-12″>
    <h1 class=”section_title”>Priljubljeni ponudniki</h1>
    <?php echo do_shortcode (‘[gd_listings post_type=”gd_place” layout=4 category=”1″ post_number=”8″ character_count=50]’); ?>

    </div>

    <div class=”row”>
    <div class=”col-md-12″>
    <h1 class=”section_title”>Prihajajoči dogodki</h1>
    <?php echo do_shortcode (‘[gd_listings post_type=”gd_event” layout=3 category=”1″ post_number=”6″ list_sort=”high_review” character_count=50]’); ?>

    </div>’

    In screen is showing places and event based on shortcodes for 8 and 6 posts per shortcodes.

    If I change to any other category is same result (showing 4 or 5 places no matter how many places category have).

    Thanks for help,
    T

    #496524

    Kor
    Moderator
    Post count: 16516

    Hi Tilen,

    Thanks for your post. Sorry, I’m not getting this. Could you elaborate a little bit more or perhaps you can share some more screenshots from your end that explains a little bit more about what you’re trying to achieve there?

    #496528

    Alex Rollin
    Moderator
    Post count: 27815

    Your shortcode is incorrect for GDV2. Please use a shrotcode builder to create shortcodes with the correct parameters:

    https://wpgeodirectory.com/docs-v2/geodirectory/shortcode-builder/

    
    
    
    [gd_listings post_type="gd_place" sort_by="high_review" title_tag="h3" layout="3" post_limit="6"]
    
    #496541

    Tilen
    Expired Member
    Post count: 120

    Thank you – it works now!
    T

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

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

Open Support Ticket