Lisitngs on other pages WITHOUT shortcode

This topic contains 7 replies, has 3 voices, and was last updated by  Kiran 8 years, 1 month ago.

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

Open Support Ticket
  • Author
    Posts
  • #365179

    Richard Davies
    Buyer
    Post count: 118

    Hello,

    I am trying to echo the listings on other pages via a custom template.

    I dont want to use the shortcode way, as I need to edit the code slightly.

    I have tried copying the listing-listview.php file, but nothing shows up.

    Am I missing something?

    Cheers

    #365234

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    copying listing-listview.php in a page template will do nothing unless you also create all custom queries.

    Same as you copy archive.php in a custom template and use it in a page, it will return nothing unless you create a custom WP QUERY.

    I asked to the developers to give you few more pointers after the week end.

    Thanks

    #365542

    Kiran
    Moderator
    Post count: 7069

    Hi Richard,

    If you want just customize template then copy listing-listview.php in your custom template. See: https://wpgeodirectory.com/docs/customizing-geodirectory-templates/

    If you want to display listings on other pages without use of shortcode, then you can display listings by using “Popular Post View” widget there.(In this case you can use custom template by copy widget-listing-listview.php into your theme templates or you can filter it via via hook “geodir_template_part-widget-listing-listview”)

    If these are not that you talking about then let us provide detailed explanation. It will be more helpful if you provide screenshots.

    Thanks,
    Kiran

    #365573

    Richard Davies
    Buyer
    Post count: 118

    Hey Kiran,

    I copied the widget-listing-listview.php into a custom template, and it just shows this

    “No listings found which match your selection.”

    Is there anything else I need to include?

    thanks for your help 🙂

    Cheers

    #365574

    Kiran
    Moderator
    Post count: 7069

    Let us provide FTP details in private reply, so we can look into and assist you more.

    #365575

    Richard Davies
    Buyer
    Post count: 118
    This reply has been marked as private.
    #365578

    Richard Davies
    Buyer
    Post count: 118

    it needs to go on the full width offers template 🙂

    #365587

    Kiran
    Moderator
    Post count: 7069

    The way you are customizing listing view template is incorrect. See steps given here: https://wpgeodirectory.com/docs/customizing-geodirectory-templates/ how to customize listing view templates. The geodirectory templates should be in YOUR-THEME/geodirectory/ directory.

    Whe are you not using [gd_listings] shortcode on this page to show listings on this page?

    Thanks,
    Kiran

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount