Special Offers Page

This topic contains 15 replies, has 4 voices, and was last updated by  pablo peco 8 years, 11 months ago.

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

Open Support Ticket

Tagged: ,

  • Author
    Posts
  • #29434

    P O
    Expired Member
    Post count: 501

    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.

    #29446

    Guust
    Moderator
    Post count: 29970

    Create a page and add the Popular post widget filtered for “Show only listings with special offers”.
    Would that suit you?

    #29450

    P O
    Expired Member
    Post count: 501

    That will list the places and not the offers, right ?

    I am looking to display the actual recent offers, not the places.

    Thanks.

    #29454

    Guust
    Moderator
    Post count: 29970

    So 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 div

    I’ll notify the others too, they might have better suggestions.

    #29469

    P O
    Expired Member
    Post count: 501

    1. 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.

    #29479

    Guust
    Moderator
    Post count: 29970

    Create a copy of your page template:
    http://code.tutsplus.com/articles/creating-custom-page-templates–wp-21843

    Create a new widget area:
    http://codex.wordpress.org/Widgetizing_Themes

    When 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 …

    #29513

    Paolo
    Site Admin
    Post count: 31206

    Guust’s suggestion would be the only way without writing custom code.
    Thanks

    #29520

    P O
    Expired Member
    Post count: 501

    I am using your theme. What file I should duplicate for a start?

    Thank you.

    #29591

    Guust
    Moderator
    Post count: 29970

    Create 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.

    #36254

    P O
    Expired Member
    Post count: 501

    How 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.

    #36313

    Guust
    Moderator
    Post count: 29970

    I think you should be able to just add a shortcode to a page:
    http://docs.wpgeodirectory.com/core-shortcodes/#poppost

    Put 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.

    #36866

    P O
    Expired Member
    Post count: 501

    That 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.

    #36908

    Paolo
    Site Admin
    Post count: 31206

    You 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

    #36912

    P O
    Expired Member
    Post count: 501

    Yeah, the idea is to show a page with only offers (texts). So changing all the site to show like that will not help.

    Thanks.

    #36970

    Guust
    Moderator
    Post count: 29970

    Read https://wpgeodirectory.com/support/topic/special-offers-page/#post-36313 again.
    Just hide everything except title and offers using css.

Viewing 15 posts - 1 through 15 (of 16 total)

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

Open Support Ticket