Questions tagged [terms]
In WordPress, terms are itens set to a taxonomy, i.e. when you create new categories or tags you create new terms.
1,422
questions
0
votes
0
answers
19
views
Put ACF function output code the_terms
I would like to put an ACF field in the of my the_terms function, is this possible?
Because I can't figure out how to put it.
<?php $dev = get_field ('my_field', 'option');?>
<?php ...
0
votes
1
answer
19
views
Modify WordPress Search
I'm facing a challenge with a WordPress project and I would appreciate the community's help in solving it.
The issue lies with the search functionality. When customers type in a search term, such as &...
0
votes
0
answers
20
views
Issue with WordPress Automatically Assigning Terms to Multiple Posts
Hello WordPress community,
I'm encountering an issue where WordPress is automatically assigning newly created terms to multiple posts in my installation. When I create a new term (custom taxonomy: ...
0
votes
2
answers
54
views
Retrieve only terms that are in use
I'm currently using term_exists( $term, $taxonomy ); in a conditional, but the problem is that it includes terms that are not being used (although they exist in the list of categories).
Is there ...
0
votes
0
answers
32
views
Set Variant options/attributes values on WooCommerce
I can insert variant options/attributes with no default values(variant name) in order to display following Variant options area with selected attribute names(Renk,Beden) on the product,
by using ...
1
vote
0
answers
16
views
When using get_terms with hide_empty = true, terms that only contain scheduled posts are not returned. How to override this?
My code is simply:
$cats = get_terms(
[
'taxonomy' => 'category',
],
);
Obviously, hide_empty is true by default. There's a category that only contains scheduled posts and it's not ...
0
votes
1
answer
31
views
How to filter the terms of custom taxonomy by author id in admin panel
I created custom taxonomy named 'Customers'.
In admin panel, different users will login and create their Customers in that taxonomy.
I want to show them their own Customers only. Currently they can ...
0
votes
0
answers
51
views
Search and filter terms of a custom post type only and display results
I am creating an archive-newsroom.php for my /newsroom page and custom post type. I have the custom post type working, but now I am trying to have a search input to display the custom post type ...
0
votes
1
answer
27
views
Overriding an existing filter
There is this function that is part of the plugin EasyDigitalDownlaods' plugin:
public function category_dropdown( $name = 'edd_categories', $selected = 0 ) {
$categories = get_terms( '...
0
votes
0
answers
24
views
Get a custom post type's taxonomy type term names displayed as checkboxes and filter
I using this code to get all the taxonomies associated with a custom post type "newsroom"
$post_type = 'newsroom';
// Get taxonomies associated with the custom post type
$taxonomies = ...
1
vote
1
answer
85
views
Using same term for slug and category
I am having problems with a site that uses the category “vacatures” for posts. The “Vacatures” page, lists those posts.
Some time ago the client has made a page called “vacatures” and replaced the old ...
0
votes
0
answers
17
views
Display posts from Custom Post Type, group by term, arrange term groups and arrange items within groups by menu order
I have a Custom Post Type 'my_cpt' and a custom taxonomy 'types' which has several terms, all of which have posts.
I want to do is be able to control both the order of the groups (terms from my custom ...
0
votes
0
answers
19
views
Replace attribute terms with wp_update_term (woocommerce)
On the edit.php?post_type=product&page=product_attributes page I want to replace (when I import a product via my importer plugin) the term name of the Terms attribute with a new name.
For example:...
0
votes
1
answer
75
views
get_term does not return the term
I am using my own taxonomy which has in the table terms corresponding row with a term. I need to get the term by term_id using get_term(141) but i get error invalid_taxonomy. I think that the ...
0
votes
1
answer
295
views
Create a custom taxonomy's term form
i would like to remove/hide the term form in the edit-tags.php page because i need to move it on another page.
Is that possible somehow?
Thanks