Theme template not used

This topic contains 1 reply, has 2 voices, and was last updated by  Stiofan O’Connor 9 years, 7 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #17770

    pawon
    Free User
    Post count: 34

    Hello,

    Found a small bug. On the ‘location’ (/location/) page (listing view), the override template in the theme directory is not used. This view uses the geodirectory-popular widget.

    (On the other listings views, the override template from the theme directory is used correctly).

    template name: listing-listview.php
    Called in: geodirectory_popular_widget.php, line #303

    Made a temporary fix with the following filter:

    
    
    add_filter('geodir_template_part-listing-listview', 'geodir_template_part_listing_listview_fix');
    
    function geodir_template_part_listing_listview_fix()
    { 
     return get_template_directory() . '/geodirectory/listing-listview.php';
    }

    Thank you

    Carsten

    #17774

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Carsten,

    We use the template replacement mostly just for full pages not template parts. But thanks for the filter code, it should help some users 🙂

    Stiofan

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

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

Open Support Ticket