Shortcodes and arguments
This topic contains 11 replies, has 2 voices, and was last updated by Alex Rollin 6 years, 9 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: gd_popular, shortcode
-
AuthorPosts
-
March 6, 2018 at 3:08 pm #420520
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
March 6, 2018 at 8:27 pm #420556Hello!
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.
March 7, 2018 at 7:20 am #420624Hi 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
March 7, 2018 at 11:33 pm #420696Hello,
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.
March 8, 2018 at 7:48 am #420741Hi,
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
March 8, 2018 at 8:58 pm #420795Can you be more specific, please? Which element would you like to address next?
March 9, 2018 at 7:29 am #420842Hi 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,
RichardMarch 9, 2018 at 12:32 pm #420874Hello,
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.
March 9, 2018 at 1:13 pm #420885HI 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,
RichardMarch 9, 2018 at 4:59 pm #420898Hello,
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.
March 11, 2018 at 12:26 pm #421068Hi 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
March 12, 2018 at 7:23 am #421139Hello,
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’
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket