Tagged Questions
0
votes
1answer
28 views
filtering custom post types via meta data drop down
I'm trying to add drop down filters (that are populated by terms that are in use) to a custom search page for "opportunities" or listings page. Currently I am doing this with taxonomies but doing this ...
1
vote
2answers
81 views
global function to apply filter to custom field
I have an action hook which works perfectly for the_content.
I would like to apply the same hook anytime a handful of custom_fields are requested.
The custom fields are 1) myfieldone 2) myfieldart 3) ...
1
vote
3answers
77 views
Change content before writing to database
I've searched around but I can't quite pin down the answer for this. I am attempting to use the content of a custom field as post_data and save it to the database as such when a post is created or ...
0
votes
0answers
69 views
Admin Filter by custom field
I use this for make a filter for post in my admin, on a specific custom post type,
but it don't work, the query don't update and i get an empty list
add_action( 'pre_get_posts', ...
0
votes
2answers
73 views
Custom Theme Fields in Settings Menu - apply filters to one of those fields?
I found an interesting concepts of adding an additional option to the "General Options" in Wordpress.
/**
* Custom Theme Settings
* see http://digwp.com/2009/09/global-custom-fields-take-two/
*/
...
0
votes
1answer
32 views
Footnotes in custom fields
I am using Jquery Hover Footnotes plugin that allows adding footnotes and dynamically displays them on hover-over.
In other words, I use {{FOOTNOTE_NUMBER}}, Then I embrace the actual footnote text ...
0
votes
1answer
472 views
Filter results with custom field values and dropdown
I need to filter posts by a custom field value.
My specific example:
User browse to products > category 1 > subcategory A.
ALL "subcategory A" items (products custom post type) are displayed
as ...
0
votes
1answer
41 views
How to display childrens custom fields?
I need help, I have a page that I want to display content from the page children, I get the content but not the custom fields!
I've tried this but it dosnt work, what am I doing wrong?
<?php
...
0
votes
1answer
129 views
How to change permalink on headlines in rss feeds?
On mysite.com/feed the headlines of my posts listed in the feed are linked to that posts permalink, for example mysite.com/my-first-post. This is standard behaviour.
But sometimes I would like this ...
0
votes
1answer
112 views
How do I filter a custom post type loop by a field?
OK, very simple task, I'm just not good at PHP.
I have a page where I want to list some staff using a styled list. Here is the page all working fine, I just need to divide the results - ...
0
votes
1answer
87 views
How to change order of posts in admin
Hi I have set a custom post type with some custom fields, one of the custom fields is a date field which is different from the publish date of the post itself, which is by default used by WordPress to ...
1
vote
1answer
100 views
Force hide custom field metaboxes
How can I completely remove the custom fields and the collapse button in the Edit Post/Edit Page custom screen, but without removing the capability to add custom fields with a PHP function?
0
votes
1answer
106 views
Create widget that filters posts on current page based on entered value
Can somebody point me in the right direction wouldnt have a clue how to start programming this.
I want to filter post based on price (custom value) thru a widget. So lets say you click on a post ...
0
votes
1answer
118 views
How do I assign this filter to a variable? (Appending php & markup to the_content)
===I HAVE SOMETHING THAT WORKS NOW, JUST NOT CORRECTLY. PLEASE READ THE WHOLE POST, I AM GOING TO LEAVE IT ALL UP HERE BECAUSE OTHERS MAY BE ABLE TO BENEFIT FROM ME BUMBLING THROUGH THIS PROCESS!!
I ...
3
votes
1answer
2k views
Add filter menu to admin list of posts (of custom type) to filter posts by custom field values
This answer is very close to what I am looking to do, but instead I would like to specify a specific custom field and display a select menu of its available values. Thanks!
0
votes
1answer
435 views
Filter search posts by post meta?
I'm working with a custom post type with custom taxonomy and custom fields and trying to filter the displayed results (on admin post listing page) by the custom field values...
I've been trying to ...
0
votes
1answer
470 views
Including inline Custom Fields info with add_filter in functions.php
I have a function set up to place some standard text in each post for a Custom Post Type. However, within that standard text I want to pull some unique text from a few custom fields. Not sure what is ...
0
votes
1answer
531 views
How to query posts by month based on date custom field?
I currently created a custom field for a custom post type that stores a date in the format dd/mm/yyyy is there a way to query the posts by the month?
I "kind of" got the functionality I need using ...
0
votes
2answers
734 views
Sort posts after filtering them through multiple taxonomies
I'm using scribu's Query Multiple Taxonomies to filter posts through multiple taxonomies (which works great!).
However, I'd like to allow people to perform further sorting on the results based on ...
2
votes
1answer
701 views
How to filter a dd/mm/yyyy date from a custom field in a query
I'm trying to build a query in order to sort some posts by a date custom field, where the dates are formatted dd/mm/yyyy.
It works by querying the database directly with get_results like in this ...
1
vote
3answers
741 views
Saving custom profile fields
I'm adding a custom profile field to users of a specific role, like this :
function add_custom_profile_fields( $fields ) {
// get current user ID
$user = new WP_User( $_GET['user_id'] );
...
0
votes
2answers
708 views
Filter or order based on custom field
I have added a custom field to some posts called 'frontpagerank'
The plan is to order the posts by this value but first I just want to filter out any that don't use a front page rank.
I have achieved ...
3
votes
3answers
6k views
Filter by one custom field, order by another?
I have a custom post type "Listing" and I want to get all Listings that have a custom field gateway_value != 'Yes', and order the results by another custom field, location_level1_value. I can get the ...
2
votes
2answers
5k views
Filter WP_Query for posts having a certain meta-value
How to filter WP_Query for posts having a certain meta-value, without using a Custom Select Query?
I have a custom posttype with meta-key: "open", and meta-value options: "yes" or "no".
I would like ...
3
votes
2answers
1k views
Archive sorting functions by custom fields (front-end)
I want to give the users the ability to sort the posts in the archive by some custom fields that I pre-define.
The end result would be en a tabbed container, and the user will click on the relevant ...
1
vote
1answer
534 views
How to order posts by one custom field and filter them by another one?
In my WordPress blog I have events I want to order and filter by custom fields. The order should be done by the custom field "event_date_end" which means that every event that is still running should ...