All Questions
Tagged with custom-field categories
92
questions
0
votes
0
answers
13
views
Category display using conditions
I have a custom post type(events) created and has taxonomy(event-categories) with parent and child categories.
Since im not good in coding, i will try to understand all the help from here.
So what im ...
1
vote
2
answers
410
views
How Do I Add HTML Support to the Additional Category Description Field?
I created an additional description field for categories, but what I write in html is saved in MSQL without html, how can I add HTML support to this field?
For example, I write a statement like this:
&...
0
votes
1
answer
165
views
Order category posts by last word of custom field
I'm trying to order a category page by the last word of a custom field that all of its posts have. The custom field represents a name, so the last word would be the last name. In the end, the posts of ...
0
votes
0
answers
45
views
Add a "custom field" to a category that can be retrieved when viewing the category page with get_post_meta
I usually set a custom field customdata for posts and pages, that I can obtain when rendering a page with this PHP code:
get_post_meta(get_the_ID(), 'customdata', true)
Is there a way to set a custom ...
0
votes
1
answer
980
views
Sort categories by custom field in WordPress admin
I know there are a lot of threads about similar issues, but I can't figure out why my custom sort won't work in the category admin page. Here is my code to add the ACF field as a column to the ...
1
vote
1
answer
172
views
need to add custom field in more products
Hi i'm gonna be completely honest idk shiz for code i just need this to work on my site, there's a category of products that i want to have this custom field how can i code it to do that?, this is the ...
0
votes
0
answers
36
views
How to use the Term Object from a custom select field in a query
I have a WordPress site in which I want to show 2 recent posts from a specific category. I want to use custom fields (via ACF in this case) to allow the site admin to choose/change the category ...
1
vote
1
answer
381
views
Retrieving category's color with get_term_meta
I followed this tutorial to add colors to categories.
However I can't make it work, when I try to use it in my loop nothing happens, I tried multiple versions but none was right.
This is what I tried:
...
1
vote
0
answers
216
views
How to change a post category when the ACF datepicker Field is today
I hope someone can help me for this:
I have posts in an "event" category and an ACF datepicker Field named "expiration".
I'd like those posts to automatically go to the "past-...
0
votes
0
answers
22
views
Categories In English version showing not canonical URL, instead shows query search result
I have a multilingual site (WPML), it has Hebrew and English languages. But for some reason in English version categories showing as query string instead of just pass it through URL. What issue can ...
0
votes
1
answer
2k
views
How to add custom color fields to the category edit page?
I'm building a Wordpress theme and I am currently finishing the category.php page. For this page, I would like the user to select two colors (background color and title/text color) and use them in the ...
1
vote
2
answers
2k
views
How to change post featured image using a custom field of category?
I have added an image custom field for categories, in which I assign an image for every category. Something like this:
I have a custom post type, and for each post I publish in this post type, I ...
0
votes
1
answer
27
views
if in category but only with post meta
Working on an if statement to display text only if it's in a specific category WITH specific post meta. If the post meta doesn't match but it's in this category, the text should not display. This is ...
0
votes
0
answers
29
views
Modifying category order
I am working with a directory style wordpress theme that displays categories in masonry style columns with their posts listed under each category title. The categories are appearing on the front page ...
0
votes
0
answers
158
views
Displaying data from custom fields on a specific category page
I created custom fields on my functions.php page and use the values from these fields on a template-parts page (for activities). This works fine. I would like to have a page for each category showing ...