-
AuthorPosts
-
October 14, 2015 at 10:55 am #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 10 years ago by
TenserD.
October 15, 2015 at 6:06 am #519048Hey 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,
RikardOctober 15, 2015 at 8:13 am #519063Hi Rikard,
yes and sorry for lack of direct information. I want to place it directly over the posts.
Thx for going into this,
DennisOctober 19, 2015 at 5:20 pm #521069Hey!
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,
ElliottOctober 20, 2015 at 3:14 pm #521719Hey 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,
DennisOctober 21, 2015 at 9:01 pm #522523Hi!
I’m not sure. It would probably be best to hire a freelancer to help you out with this customization.
Cheers!
Elliott -
This topic was modified 10 years ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
