offshorly
Forum Replies Created
-
AuthorPosts
-
June 8, 2017 at 12:48 am in reply to: Problem with listings picking up wrong default category image #382235
Great! We somehow thought that the default category was supposed to be the parent category when importing data via csv (the category to fall back to), and has nothing to do with the default image. But makes sense now. Thanks a lot Paolo.
That worked. Such a simple solution for a problem that bugged us for some time. Thanks do much Paolo.
Hi Paolo, thanks for the reply. I meant for each item in the output of the gd_listings shortcode. Will double check later if there’s some hidden elements via css, but as far as I can remember the default output of the shortcode does not include the listing categories.
June 7, 2017 at 1:33 am in reply to: Problem with listings picking up wrong default category image #382013This reply has been marked as private.Hi, sorry for reviving an old post. If not the category icon, is there some way that we could display the categories as text then among the info for each listing? Willing to dive into the code if anyone can point me in the right direction. Our client really wants the categories to be shown in the listings. Thanks in advance.
June 6, 2017 at 3:14 pm in reply to: Problem with listings picking up wrong default category image #381940This reply has been marked as private.Hi,
Forum seem to have deleted my previous post when I attempted to edit. Anyway, we’re planning to implement 3 price packages initially for listings (say, premium, basic, and free). Our client wants to display the listings in the country and city pages using a 3×4 grid in the following order:
1st row: Premium listings
2nd row: Basic listings
Preferably insert a banner add between 2nd and 3rd rows
3rd and 4th rows: Free listingsI’ve search the forum and played around with the core shortcodes and so far the best approach I could find is to use tags for each pricing package and display the listings using 3 instances of the gd_listings sc. Limiting the layout and post_number of the first 2 rows to 3 and filtering by their respective tags, inserting an ad banner below the 2nd row, then displaying the rest using a third instance of the shortcode. Works but less than ideal since we have to ask the client to duplicate the pricing package using tags for each listing. Is there a way to filter output of the gd_listings shortcode by price package instead?
Using latest WP, GD core and payment manager add-on. Thanks in advance.
Never mind, found a workaround by parsing the url of the current page and querying the WP db for needed data.
This reply has been marked as private.I see, thanks paolo.
Ok, found the parameter in geodir_shortcodes.php and set
parent_only=1
still not sure what ‘category_restrict’ does though.
Hi Kor,
Thanks for the reply. I traced the part in the supreme directory theme that I need to override in the /inc/geodirectory-compatibility.php file. Specifically the line that says:
echo do_shortcode('[gd_popular_post_category category_limit=5 category_restrict=1]');
The documentation for gd_popular_post_category only lists category_limit and title as parameters. Would you know the counterpart parameter to set for ‘Show parent categories only’ for the shortcode? And what does ‘category_restrict=1’ do in the above code? Thanks again.
Thanks Kiran, this worked.
Hi Paolo and Kor,
Thanks for your replies and will be looking into the links you provided.
Hi Kor,
Thanks for pointing me to the relevant docs. Skimmed through that already but somehow missed that the template files to override are within the plugin folder and not in the theme folder. Thanks again.
-
AuthorPosts