1
vote
2answers
52 views

Is it acceptable to build functionality into a theme built for a client? [closed]

I know it's now the common wisdom to not build functionality into themes, as advised by WordPress, Envato, and others. This includes the likes of content types, taxonomies, sliders, shortcodes etc, to ...
-1
votes
0answers
47 views

Add new custom field for custom taxonomy - print_r field not found

Thanks to this website, I succeeded in adding a field for my custom taxonomy (my taxonomy is called "ptype"), but when I try to use the function to save the data, I don't have my custom field in the ...
0
votes
1answer
40 views

Custom taxonomy - custom sortable column

I've created custom taxonomy called 'cities' where you can add cities and added custom field ( radio button ) with 2 options: 'Yes' and 'No' ( never mind what that is ). Everythins is ok, I can get ...
0
votes
0answers
29 views

Create hierarchical menu for custom taxonomy meta field

I've created a custom fields for a custom taxonomy. All works fine so far, I can save, edit and display these fields. Now I want to display these fields in the admin menu as a hierarchical menu like ...
0
votes
1answer
73 views

Custom post types category

I have created a theme with a custom post type called 'project' and there is a problem. I want to show 5 different custom post type categories on a page in different portions, like posts to show on ...
1
vote
1answer
54 views

Styling Taxonomy Terms Individually

I am trying to solve a problem and need help :) First, I have a custom grid displaying terms and images from my custom taxonomy. This is the code I'm using currently: <?php $terms = get_terms( ...
0
votes
1answer
57 views

Show Custom Post Type taxonomy term that matches custom field

Not sure how well I can explain this but I will try. I have two Custom Post Types. One is "Locations" and one is "Members." I need to show only the members that belong to the location. "Locations" has ...
0
votes
1answer
19 views

pre_get_posts causes Custom Posts appear under 'Pages' menu

In order to enable pagination on for custom post archive I've added pre_get_posts function. But, funnily it caused my custom posts be duplicated under 'Pages' menu. Here is the code that causes the ...
0
votes
0answers
24 views

Custom post with custom category and custom meta box query and order by custom_value

Im building a Library CPT= Libro Custom Taxonomy= categoria_libro (as category) Custom meta box which has: autor editorial ciudad año As it says in the title, I need to query a custom post ...
1
vote
0answers
114 views

Removing “s” from search with custom parameters

I'm trying to do something that I thought would be quite simple and has turned out to be not simple at all. I've seen quite a few posts that look similar at first glance but none solve the issue for ...
0
votes
0answers
86 views

custom taxonomies are not showing up in get_taxonomies

I've made several taxonomies through the custom post type ui manager but i am not able to call them with get_taxonomies and my get_terms is not working either. Is there something I have to do after ...
0
votes
2answers
173 views

Register custom taxonomy from a Advenced custom field option page

I have a website with products (shoes), i have some shoes models registered as taxonomy on the function.php file like so: function add_custom_taxonomies() { register_taxonomy('mod-nike', ...
0
votes
2answers
41 views

Storing/querying custom date data

I'm currently building a site where I need to filter/order/query a custom post type by date data. I can't use the post published date for this, but can't decide what would be the most efficient way to ...
1
vote
1answer
65 views

Can I use a Custom Meta Value inside of 'get_the_terms'?

I have a custom Page Template, and this is the code that I am trying to manipulate to change depending on a custom meta value that I write for specific Pages. $terms = get_the_terms($post->id, ...
0
votes
1answer
77 views

Why can't I access Custom Taxonomy metadata?

I'm trying to access Custom Taxonomy metadata for all my custom taxonomy terms. The metadata is stored in options like so: $t_id = $term_id; $term_meta = get_option( "taxonomy_$t_id" ); ...
2
votes
1answer
178 views

Automatically assign taxonomy term if custom meta value exists

I currently have a custom meta field for adding a video url to the post. I'd like for the existing taxonomy term "video" to be automatically assigned to the post upon saving if the meta field has any ...
0
votes
2answers
66 views

Avoiding stripping of HTML in Custom Taxonomy Meta Field

I'm using a custom form field on a Custom Taxonomy to hold various data. All working well except in one particular case where I'm trying to save an iframe embed code (from Bandcamp) which is to be ...
0
votes
2answers
59 views

Order by custom field attribute

I'm try to get the output of this post type to order by the staff name alphabetically and I can't seem to figure out if needs to be within the beginning array() or if I been do something within the ...
0
votes
0answers
35 views

Custom meta boxes for different custom post type on multisite WP

I have two custom post type defined ('acting' and 'voiceover') and custom met boxes defined for both of them. I'm able to save, update and delete on the acting custom post type. But if I add the ...
0
votes
1answer
201 views

Advanced WordPress search form based on custom taxonomy and custom meta value

I would appreciate if someone could help me out with the following issue. Here is the thing. I created two select boxes so I could filter and display posts from a custom post type based on two values ...
0
votes
1answer
309 views

How to modify the query in taxonomy-custom.php to sort term archives by a custom meta field?

I am trying to create theme pages for custom taxonomy terms in which the archives are ordered by a custom meta field. I can do this with a new wp_query as follows: <?php ...
0
votes
2answers
1k views

Get value in custom field with taxonomy

I have custom field my_cf for Taxonomy/Term. How can I get and output value with custom field for taxonomy/term? I've tried using: $variable = get_field('my_cf', 'basic'); echo $variable; ...
0
votes
0answers
125 views

Custom Posts Hierarchy? (State/City/Restaurant)

Question: What is the best way to create a hierarchy structure (also called parent/child relationships) between custom post types? For example, we currently have 3 post types: States, Cities, and ...
0
votes
0answers
75 views

Sticky (or any boolean field) taxonomies?

I would like to add an extra field to a custom taxonomy, wich I would use a little bit like sticky posts, this way I could have a menu with some special taxonomies, is that posible? I can't seem to ...
1
vote
1answer
2k views

Order get_terms() By Custom Field

I want to order my categories like I order my pages. I've added an extra field called Order to my taxonomy, but how do I order my terms by this value? Adding and Saving my Order Value: /** Add New ...
-1
votes
1answer
50 views

How to change order of custom post types. I want Featured post to come first

Used this but not working: $my_query = new WP_Query( array( 'post_type' => 'businesslistings', 'post_status' => 'publish', 'orderby' => get_query_var('orderby'), // ...
0
votes
0answers
746 views

add custom fields in custom taxonomy meta box in wordpress-3.5.2

Unable to add custom fields in custom taxonomy meta box in wordpress-3.5.2. I have checked solution in various blogs but Unable to solved this problem. I am using wordpress-3.5.2 What I am trying is ...
0
votes
1answer
140 views

Use custom field as tag slug

I am trying to replace 'tag-slug' with a custom field value, so it will automatically pull the tags that match the custom field 'my-tag-slug' The code below does what I want <?php if ...
0
votes
2answers
338 views

Custom Taxonomy dont save in a frontend form for post a custom post

I have a Dropdown Categories .. <?php wp_dropdown_categories('taxonomy=faenas_combenef_category&hide_empty=0&orderby=name&order=asc&name=location') ?> And my post Process... ...
0
votes
1answer
301 views

SQL / wp_update_post: change post custom field to CPT post taxonomy

the setup is as follow: I have posts with a custom field: actor = 'tom hanks' for advanced management I created a custom post type (actors) and added "tom hanks" as a post within that actors taxonomy. ...
0
votes
2answers
107 views

How can I show custom field according to taxonomy?

How I can show custom fields in my theme according to category? For example in Laptop category show some custom fields and in Motherboard category show another fields.
0
votes
0answers
61 views

How to create filter for site

Good afternoon. Learning WordPress, I would like tips on how to make the filter on my website (not in the admin panel). For custom fields using magic fields 2 to display all the records I've just ...
0
votes
2answers
240 views

display posts from category within a custom taxonomy

I am trying to listing posts from a single category of my custom taxonomy. I have created a custom post type called "news" and a custom taxonomy called "instituteName". I then created a number of ...
1
vote
0answers
310 views

How to fetch the data from Advanced Custom post when we search specific keyword or field name related to the post?

Actually i have created a custom post type and fetch the data from "Advanced Custom Fields" plugin after then connect to a custom search-form to search only the post data.It works good. But now i ...
1
vote
2answers
270 views

Sum custom field values of particular taxonomy

I need to sum custom field values of a custom post type with a particular taxonomy ONLY. For example... Custom Post Type: Computers Taxonomy: Laptops Custom Field: Quantity How can I get the ...
0
votes
1answer
320 views

Transfer taxonomy to custom field

I have a blog with movie critics and I'm using many taxonomies to add some informations about the movies, like director, actors or it's year. Using taxonomies is really useful to display all movies ...
0
votes
1answer
69 views

Assign a custom post to a custom taxonomy based on custom field value

This answer does exactly what I needed to do, but the only thing is I need it to select more than just one category. So I have changed the code to work based on salary so salary gets entered into a ...
0
votes
1answer
145 views

Custom post type and custom taxonomy archive inaccessible

I've created some custom post type let say: post_type_1 post_type_2 Those post types are related to each other, every post_type_1 has parent of many post_type_2. Then I created a custom taxonomy ...
0
votes
0answers
36 views

Private feedback on users

I am trying to find a way for users to write private/anonymous feedback on each other (similar to ebay or amazon but private, and so that users can view feedback on them and feedback they have sent). ...
2
votes
1answer
112 views

Automatically populate a hierarchical taxonomy from a custom field

I've got a vexing how-to that I've not found any help on. I have a custom post type that has a custom field with a date in it (format: yyyy-mm-dd-t). When a post is published or edited, I would like ...
0
votes
2answers
111 views

Targeting categories in custom fields

I was hoping somebody could help me out with custom fields. I created a custom post type called game-type in WordPress. In this I have the categories "Android", "iOS" and "PC", then within these I ...
1
vote
1answer
390 views

How do I display a custom field from a custom taxonomy in single.php?

I know that the following mysql query produces the exact results I wish to echo within single.php: SELECT meta_value FROM `wp_taxonomymeta` WHERE `taxonomy_id` =565 AND `meta_key` LIKE 'baseurl' ...
1
vote
1answer
105 views

How to display products name in a non-alphabetical order, in a custom field (taxonomy)?

Now the order is: apples, oranges, pears. But I want to be in a random order, for ex: oranges, apples, pears. Or to write them in a order that I want. Is this possible? Taxonomy is like that: ...
0
votes
1answer
221 views

How to display posttypes and taxonomy in standard posts, not in a separate label?

I want to display some taxonomies directly in "Posts" label, as standard post, not in a separate label like "Books" for exp., but i don't know how. Is there a way to do this? This is the code: class ...
0
votes
1answer
107 views

Is there a way to add a custom input field for every taxonomy term in WP post editor?

I've created a custom taxonomy for my posts, and I was wondering if there is a way to add an extra input field (a text input) for every taxonomy term inside the edit post panel. What I want is not a ...
0
votes
1answer
119 views

Making a form for user to add new custom post with custom taxonomies and custom fields

I want to ask that is there a way display all my custom taxonomies in a drop down menu with checkboxes so when the user check any taxonomy it will be slected and when the user click the submit button ...
0
votes
1answer
425 views

Filter by Custom Taxonomy AND Custom Field

I'd like to give my users the possibility to filter the posts by Taxonomy Terms AND Custom Field values. Like so: [tax]Country:[terms] [tax]Company:[terms] [field]Price:[values] Filtering by ...
1
vote
1answer
474 views

List the number of posts for each custom taxonomy and specific custom field value

I would like to list my posts by a specific taxonomy. At the same time, for each taxonomy, I woud like to count the number of posts with a specific custom field value. So the list would look like ...
0
votes
1answer
163 views

Should i use custom post type for a custom footer?

I am trying to develop a customized footer so that depending on what page the user is on, the site will display a different footer. Basically the footer will remain pretty much the same except it ...
1
vote
1answer
226 views

How to add contents of a custom field to a taxonomy term list?

I have a custom taxonomy term of 'artists' which is the artist's last name and a custom field of 'first_name'. To create a list all all artists with both their first name and last name I am using the ...