342 reputation
1410
bio website maorb.info
location
age
visits member for 4 years
seen Nov 23 at 17:41

Jan
29
comment Modify main loop query for paged and meta key
Since the featured items are dynamic. Offset removes the first X posts from the query, but featured item can be any item in the entire blog, not necessarily the last 3 new ones
Jan
29
comment Modify main loop query for paged and meta key
A 2ns issue with this (but less important for now), is since we use parameter $paged-1, so plugins like wp_page_navi don't show the correct number of page , and when on page 2 it shows number 1 etc. Anyway, this is less important now, I might show only links to prev/next pages and not for page numbers or so.
Jan
28
comment Modify main loop query for paged and meta key
I tested it and it appears it getting close to what is needed here. The problem now is now as this: suppose I chose as "featured" posts to be posts #3, 10, 11. So, in the main loop in the homepage (which shows all posts besides the featured) I get posts #1,2,4,5,6,7,8. Then, the 2nd page shows me 3,9,10,11,12,13,14. This is better than what I got before, since now I have the posts naturally there, but the post #3 shouldn't appear on page 2, since it's not in place. How can I avoid that ?
Jan
28
comment Modify main loop query for paged and meta key
I can't use sticky in this case, since I handle this meta_key to show it as an additional column in the edit posts admin panel and I also use some Ajax to let the admin change the status from featured / not featured and so on. The meta_value is being properly changed in the db with Ajax, and I want to find a way to use this meta key to implement that. I don't want to use the sticky in here. I'm going to test your solution you suggested in the answer below
Jan
28
asked Modify main loop query for paged and meta key
Jan
25
comment How to link categories to custom taxonomy terms?
Thanks for your answer. I don't mind doing it with ajax, I already use some ajax in the admin panel for something else, it's not that important if the change will make ajax call to load the appropriate terms related to the category or if it will be just show/hide it with js. The question if this is the right method, since it might be that I would like to keep the way of the tags style of selecting terms etc.
Jan
25
comment How to link categories to custom taxonomy terms?
There are channels (categories) and subjects (the other taxonomy). Each channel has separate subjects associated, and is needed to be both separated by name in the front end and also in the admin. The admin should see "subjects" as a separate meta box and not as "sub channels"
Jan
25
asked How to link categories to custom taxonomy terms?