Special Offers Page
This topic contains 15 replies, has 4 voices, and was last updated by pablo peco 9 years, 9 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
February 2, 2015 at 7:31 am #29434
Every place owner can add special offers and I want to display in a page all the offers by date.
That way I have a “Latest Offers” page where all the users can see them, click them and go to the actual place page offer.
How can I do that ?
Thanks.
February 2, 2015 at 10:30 am #29446Create a page and add the Popular post widget filtered for “Show only listings with special offers”.
Would that suit you?February 2, 2015 at 10:31 am #29450That will list the places and not the offers, right ?
I am looking to display the actual recent offers, not the places.
Thanks.
February 2, 2015 at 10:39 am #29454So you are after some pointers to create some special code, are you?
The offers would still need to link to the listings would they not?
You could still use the widget and hide what you don’t want to display, just add the “special offers” custom field to the listings page, then they will display.This is what I would do:
1. create a new page template that has a special div as part of the new widget area
2. add the popular post widget
3. now you can style everything on that page using the divI’ll notify the others too, they might have better suggestions.
February 2, 2015 at 11:43 am #294691. create a new page template that has a special div as part of the new widget area
Can you please elaborate on that ?
Thank you.
February 2, 2015 at 12:49 pm #29479Create a copy of your page template:
http://code.tutsplus.com/articles/creating-custom-page-templates–wp-21843Create a new widget area:
http://codex.wordpress.org/Widgetizing_ThemesWhen you then add your new widget code in the new template, put a div around it like:
<div id="my-special-offers"><?php dynamic_sidebar( 'my-special-widget' ); ?></div>
Then you can style any of the normal GD styling, for example this would hide the image of your listings:
#my-special-offers .geodir-post-img {display:none;}
I hope I am still making sense …
February 2, 2015 at 3:57 pm #29513Guust’s suggestion would be the only way without writing custom code.
ThanksFebruary 2, 2015 at 4:15 pm #29520I am using your theme. What file I should duplicate for a start?
Thank you.
February 2, 2015 at 9:49 pm #29591Create a copy of wp-content/themes/GeoDirectory_framework/page.php
Rename it to page-offers.php (example only)
and save in your child theme folder.April 5, 2015 at 6:27 pm #36254How can I do this using Enfold that has a builder and I can create widgets areas ?
I want to display only special offers.
The idea is simple, you hit special offers and you see all the special offers available. But you see the special offers, not the places.
Clicking the special offer takes you to the complete place listing.
And maybe be able to see them by location as well, that way I can see the offers in my city.
I believe this is something that should be integrated in the plugin.
Thanks.
April 6, 2015 at 8:38 am #36313I think you should be able to just add a shortcode to a page:
http://docs.wpgeodirectory.com/core-shortcodes/#poppostPut a div around it like:
<div id="my-special-offers">[gd_popular_post_view add_location_filter=true show_special_only=true]</div>
Then you can style any of the normal GD styling, for example this would hide the image of your listings:
#my-special-offers .geodir-post-img {display:none;}
Ii just tested it, and it works just fine.
April 11, 2015 at 12:23 pm #36866That way it shows the places like in any other page.
Is there a way to show the name of the place and the actual special offer text ?
Thanks.
April 11, 2015 at 4:37 pm #36908You can show Special Offer text by going to GeoDirectory >> Place Settings >> Special Offers (Text Area) >> Show on listing page >> Yes.
This however will show the special offer in each listings page/widget.
Having them show only on that1 list would require a customization.
Thanks
April 11, 2015 at 4:49 pm #36912Yeah, the idea is to show a page with only offers (texts). So changing all the site to show like that will not help.
Thanks.
April 12, 2015 at 10:36 am #36970Read https://wpgeodirectory.com/support/topic/special-offers-page/#post-36313 again.
Just hide everything except title and offers using css. -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket