Dear Andrei,
the site is under construction and password protected. Could you please provide me with an email address so that I can send you the login credentials?
Thanks
Hi aabuday,
I have a custom post type ‘events’. This holds a couple of fields. relevant for sorting is one date field, which is ‘event-startdate’. This one is used as shown in the snippet above.
I’m using the pods.io framework for all the handling of CPTs and custom fields. works great.
If you need further assistance, please give me some more information what exactly you want to achieve.
Thanks Andrei,
is there a chance to hook in the template output?
When I setup a new query in a taxonomy-my_taxonomy.php file and call the loop.php it doesn’t work with my arguments.
Otherwise I have to rebuild alle the necessary output myself.
Of course I’m able to do that, but I like to use the existing code.
Thanks for a hint
Thank you Lucian,
it works now.
Here is ma code, just for reference:
case 'event_startdate':
//set the date of today
$today = date('Y-m-d');
//we're looking for the "event_startdate" in postmeta (based on pods custom field)
$wp_query_args['meta_key'] = 'event_startdate'; //enter your field name
//we want to compare the event_startdate with today
$wp_query_args['meta_value'] = $today; // see declaration above
//field format is DATE
$wp_query_args['meta_type'] = 'DATE';
//we want only events which are in the future
$wp_query_args['meta_compare'] = '>';
$wp_query_args['order'] = 'ASC';
//sort the list based on the event_startdate_value
$wp_query_args['orderby'] = 'meta_value';
break;
solved – the problem was a leading blank in td_block.php
GREAT – Thanks – works like a charme 🙂
If there is a virtual pub, I would buy you a beer or 2.
Thanks Andrei,
what I want to achieve is to get the option to choose in the e.g “big screen Settings –> Filter” from one Custom taxonomy. There is only the option to choose from the Wp build in category.
Even if I set up the Taxonomy relation in the Theme Settings, it will not show up in the Filter.
Is there a way to make this happen?
Thanks.
I have a similar problem right now and like to ask if you would mind sharing some example code or a hint how to achieve that solution.
Otherwise I have to change the data structure and go back to the category option – which I like not much.
Thanks.
