Site logo

Archived topic

Add drop down on archive pages to allow sort by title, newest, oldest

3 replies · Started by Denise on September 4, 2018

Viewing posts 1–4 of 4

Hello GP Friends,

I would like to give the user the ability to sort the archive pages by title, date descending or date ascending by using a drop down box that is right below the archive page title.. I can add this in an Elements hook that goes after the archive title. What is the best way to do this? Can I make use of the GP hooks? I am using a child theme and the most recent GP Premium.
-- What is the html code for the submit form?
-- What is the php code for the functions.php page?

Many thanks,
Denise

Hi there,

Sorry have you found a plugin or existing code that will do this?

If so inserting using Hooks Element is definitely the way to go.

If you are looking for the code/function to do this, unfortunately this is out of the scope of this forum as it will require quite a bit of custom code.

You can try asking on a site like this:
https://stackoverflow.com/

Let me know if this helps :)

Thanks, Leo. I have found a plug-in that will do it. But I wanted to check and see if there was an easy GP method. Sounds like there isn't. You may close this ticket.

Best wishes,
Denise

No problem :)

This archived topic is closed to new replies.