Forum: Nearby Posts

This forum is closed for new topics. However, you can still search for a solution in the old topics. For technical support related to the Nearby Posts premium extension please open a new premium support ticket.

[Resolved]Posts Locator Order-by Filter Tutorial

Forums Nearby Posts Posts Locator Order-by Filter Tutorial

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #49364


    Thanks for the plug-in.

    Does this tutorial post ‘Posts Locator Order-by Filter’ apply to the free plug-in please?

    I have spent all day trying to get your below code to work by adding it to my child theme functions.php (not the GeoMyWP functions file).

    Is the child theme functions where the above code should go please because I am just getting the below error?

    Parse error: syntax error, unexpected ‘)’, expecting ‘]’ in D:\HostingSpaces\wwwroot\wp-content\themes\unite-child\functions.php on line 60

    I am trying to get to be able to order the WooCommerce search results by price descriptions using value – price-desc. But, I just can’t get past the first part of the tutorial.

    I am not a PHP developer, which I am sure is clear. I would really like to get this done because I can’t afford to pay anyone else to do it.





    I think that I have got the code from the tutorial working by combining the top code from the ‘order’ part of the tutorial instead of the code at the bottom of part 1, along with the ‘bottom’ code from the filter section.

    Now I’ll have a go at sorting by price – fingers crossed.

    Thanks anyway.

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

You must be logged in to reply to this topic.