Shortcodes and arguments

This topic contains 11 replies, has 2 voices, and was last updated by  Alex Rollin 6 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #420520

    Richard Vermeer
    Free User
    Post count: 5

    Hi,

    I am building a static page which should look like this GD categorypage: https://www.we-grow.info/persoonlijke-ontwikkeling/experts/

    I am using this shortcode:  [gd_popular_post_view add_location_filter=true post_type=gd_place] to get the same result on the page mentioned above (on the right when you scroll down). Unfortunately I see other items on my static page compared to the GD directorypage.

    What am I doing wrong? Missuse of parameters? Or typos? I added a screenshot of the back-end of the static page I am creating.

    Thank you for your help!

    Regards,

    Richard

    #420556

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    The location filter won’t work on that page because it is not a ‘page with a location’.

    I am not sure which of the features on the page you are referring to, though.

    Please send us a link to your new page and tell us a bit more about the unexpected results you are encountering, and we would be happy to help.

    #420624

    Richard Vermeer
    Free User
    Post count: 5

    Hi Alex,

    Thanks for the help.

    I set this private page to public now so you can have a look: https://www.we-grow.info/home2/ -> this is the page I am rebuilding. I have taken over a website from another developer, so GD is completely new to me. Slowly getting into it 🙂 As indicated I am trying to copy this one: https://www.we-grow.info/persoonlijke-ontwikkeling/experts/

    Regards,

    Richard

    #420696

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    You can review the popular post widget here: https://wpgeodirectory.com/docs/widgets/#popular-post

    Let us know which part you are having issues with.

    #420741

    Richard Vermeer
    Free User
    Post count: 5

    Hi,

    As you can see one page uses the widget, the other the shortcodes. This page indicates all possible shortcodes (https://wpgeodirectory.com/docs/core-shortcodes/), but I do not know why I do not see the same content…apprently I am using the incorrect parameter(s) in my shortcode?

    Regards,

    Richard

    #420795

    Alex Rollin
    Moderator
    Post count: 27815

    Can you be more specific, please? Which element would you like to address next?

    #420842

    Richard Vermeer
    Free User
    Post count: 5

    Hi Alex,

    I have a ‘categorypage’ where you can see (on the right side when you scroll down) certain “Upcoming Events” in the sidebar. This is the categorypage:

    https://www.we-grow.info/persoonlijke-ontwikkeling/experts/

    I want to rebuilt the above page here:

    https://www.we-grow.info/home2/ -> as I want it to be the new Homepage that can be easily adjusted.

    But, as you can see in the Home2 page, I see ‘Places’ instead of ‘Upcoming Events’.

    I use this shortcode on the Home2 page:

     [gd_popular_post_view add_location_filter=true post_type=gd_place]

    Apparently I am using incorrect parameters as I see 2 different things on the pages. I want the pages to contain the same content. Now they are different..

    Regards,
    Richard

    #420874

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    you can replace that with an event manager shortcode or widget:

    https://wpgeodirectory.com/docs/event-manager-shortcodes/

    Since it is a single page, you will need to identify the sidebar for that page and either add a shortcode to a widget (and enable shrotcodes in the widget) or just use the events widget.

    #420885

    Richard Vermeer
    Free User
    Post count: 5

    HI Alex,

    I am not using a sidebar but a visual composer column with a text block. The text block contains the shortcode.

    The events listing shortcode gives me complete other events then the popular post shortcode.

    To your opinion, what shortcode and parameters should I use to get the result in attached screenshot?

    Regards,
    Richard

    #420898

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    You should use a shortcode with the same settings as the widget. Each is a pair, a widget and a shortcode. Generally speaking the GD Listings shortcode is the most ‘powerful’ and has the most options, but you should use a shrotcode that matches the widget on that page.

    #421068

    Richard Vermeer
    Free User
    Post count: 5

    Hi Alex,

    I understand that. Problem is still, which parameter is the correct one as indicated in my screenshot? That is my question to an experienced user of GD as I am rather new to this.

    Richard

    #421139

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    If you study the shortcode you will will the parameters that match the widget.

    It looks like it is set for list sort A-Z, for example, and that it is using post type ‘events’

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

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

Open Support Ticket