Categories
CMS Mastering Development Wordpress

WP_Query inside foreach loop returning same value for all options when filtered using ajax

I am trying to build a timetable to display classes by time. I have a taxonomy of Day, which I am looping over to create a column for each day of the week. In side the column is a WP_Query which filters using the day taxonomy and meta_key classes_entry_start_time to orderby meta_value_num. The timetable is […]

Categories
CMS Mastering Development Wordpress

WP_Query inside foreach loop returning same value for all options when filtered using ajax

I am trying to build a timetable to display classes by time. I have a taxonomy of Day, which I am looping over to create a column for each day of the week. In side the column is a WP_Query which filters using the day taxonomy and meta_key classes_entry_start_time to orderby meta_value_num. The timetable is […]

Categories
CMS Development Wordpress

Display all the terms within a custom taxonomy

I am looking to make a few different displays on the home page of terms within certain taxonomies as well as their image field as defined by ACF. I have been looking online and found 2 main different ways to do this and would like to initially ask what is the difference between the two:? […]

Categories
CMS Development Wordpress

Custom Widget Options (dropdown list) is not returning any value

I am building a custom widget for my custom taxonomy and custom post type. basically it is a widget which displays recent posts from custom post type(game). I want to give the user an option to choose a term from which he want to display the custom posts. I have placed a drop-down list with […]

Categories
CMS Development Wordpress

Display all the terms within a custom taxonomy

I am looking to make a few different displays on the home page of terms within certain taxonomies as well as their image field as defined by ACF. I have been looking online and found 2 main different ways to do this and would like to initially ask what is the difference between the two:? […]

Categories
Development

custom taxonomy pagination 404 (attachments)

I created a taxonomy for the media area, so I could assign all my images to specific categories. All is working fine with my taxonomy page, until I try to go to page 2, at which point, it throws a 404. I have tried about 8,000 different rewrite rules functions that I’ve found over the […]

Categories
CMS Development Wordpress

Display related terms from a taxonomy in an entry

I have a function to obtain specific taxonomies in each entry. The problem is, for each entry, it shows all the values that the taxonomy contains. How can I do to show the correct value to each entry? I don’t know about programming. I appreciate you being clear in the answer. Thank you $terms = […]

Categories
CMS Development Wordpress

Display related terms from a taxonomy in an entry

I have a function to obtain specific taxonomies in each entry. The problem is, for each entry, it shows all the values that the taxonomy contains. How can I do to show the correct value to each entry? I don’t know about programming. I appreciate you being clear in the answer. Thank you $terms = […]

Categories
CMS Development Wordpress

How to select a parent category and show the children to choose in another select?

How to select a parent category and show the children to choose in another select? this is the code (parent taxonomy) <select> <option value=””><?php esc_html_e(‘Selecciona País’, ‘eltd-tours’); ?></option> <?php //Listado de taxonomias por país $tax_terms = get_terms(array( ‘taxonomy’ => ‘tipo_pais’, ‘hide_empty’ => false, ‘hierarchical’ => true, ‘orderby’ => ‘parent’, ‘fields’ => ‘all’, ‘parent’ => ‘0’, […]

Categories
CMS Development Wordpress

how do you pull data from two taxonomies?

I have posts loaded from taxonomy, but I’m trying to get the data of another, that’s also attached to the same post. In the code below, the main focus is getting $location_slug. Knowing how to get that I think I’d know how to get more data out of the second taxonomy. // args for the […]