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
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
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
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
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
Hi!
I’m not sure. It would probably be best to hire a freelancer to help you out with this customization.
Cheers!
Elliott