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

Home Forums Support [Resolved] Add drop down on archive pages to allow sort by title, newest, oldest

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #668993
    Denise

    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

    GeneratePress 2.1.4
    GP Premium 1.7.2
    #669545
    Leo
    Staff
    Customer Support

    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 ๐Ÿ™‚

    #669877
    Denise

    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

    #669944
    Leo
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.