WordPress Category Programming

WordPress Category Programming
I am in need of a custom setup for my category page in WordPress.

I am trying to build a custom category template that loads all content that is marked with a with a special meta_key/meta_value first when loaded. The meta_key/meta_value are added via the Custom Field area on the post page.

If for whatever reason there are not enough posts containing the meta_key/meta_value pair then it will load the other posts from the same category that do not have the meta_key/meta_value pair.

Leave a Reply

Your email address will not be published. Required fields are marked *