Tagged: , ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #518567

    Hi there,

    sry can’t find any similar question inside the forum.
    I try to implement a filter for sorting posts inside categories. I found such things like this http://wordpress.stackexchange.com/questions/20830/sort-posts-by-alphabetic-plugin-suggestion and tried to implement but my php knowledge is to minimal to find out to get it to work.

    Is there someone who made such a filter or anyone an idear to accomplish this?

    Best regards,
    Dennis

    • This topic was modified 9 years, 1 month ago by TenserD.
    #519048

    Hey Dennis,

    Just to be clear on what you are trying to do; you’re trying to sort posts alphabetically on category pages, correct?

    Best regards,
    Rikard

    #519063

    Hi Rikard,

    yes and sorry for lack of direct information. I want to place it directly over the posts.

    Thx for going into this,
    Dennis

    #521069

    Hey!

    Not sure if it will work but you can try it. The first snippet you can add to the bottom of your functions.php file. The second snippet can be added to line 23 in the archive.php file and the third snippet can be added around line 33 in the archive.php file.

    Regards,
    Elliott

    #521719

    Hey Elliott,

    thats what I have done. 1st and 3th on this position but when I implement the 2th it end up in a whitepage (yes I put <?php … ?> on the lines).

    Maybe there is something wrong with the “//check for posts order a-z or z-a” part of it? When I only use the “posts per page” string it will show me the page but it doesn’t work.

    Sorry its a privat project and local so I can’t share a link and at this time I have no programmer with knowlege with wordpress, so I hope (someone) you can help me out.

    Cheers,
    Dennis

    #522523

    Hi!

    I’m not sure. It would probably be best to hire a freelancer to help you out with this customization.

    Cheers!
    Elliott

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.