173 reputation
14
bio website evowebdev.com
location Santa Fe, NM
age 61
visits member for 4 years
seen 13 hours ago

Front-end developer, designer, specializing in WordPress CMS business site development.


Jul
1
answered disable WP automatically inserted line breaks after an image
Mar
4
comment Are custom post types lost when the theme is changed?
I used to register CPTs in the theme functions files, but have taken to creating them in a mu-plugins folder. In the event of a theme change, templates must be added to display the custom fields associated with CPTs, but the CPTs remain visible in the admin area.
Feb
7
awarded  Popular Question
Feb
4
comment Can I upload media to a specific folder?
Unfortunately, the date organization structure, which is very useful for blogs, isn't so useful for CMS sites that don't incorporate blogs. Seems like there should be an easy way to create an upload file structure based on things like post type (ie, page uploads go in different folder than CPT uploads).
Oct
14
answered How to force TinyMCE in WordPress to replace newlines with <br> tags and not with <p>&nbsp;</p>
Mar
6
awarded  Popular Question
Feb
28
awarded  Popular Question
Feb
13
comment Exclude custom post type from search by custom field value?
Eugene - this looks like it would work, but it actually excludes all results on all post types and pages.
Feb
13
comment Exclude custom post type from search by custom field value?
This is a query for listings, isn't it?. Specifically trying to exclude from search results.
Feb
13
asked Exclude custom post type from search by custom field value?
Feb
11
accepted Query custom post type based on post id and custom field value
Feb
6
revised Query custom post type based on post id and custom field value
added 141 characters in body
Feb
6
accepted Alter BuddyPress member search to include search on added profile fields
Feb
5
revised Query custom post type based on post id and custom field value
added 16 characters in body
Feb
5
revised Query custom post type based on post id and custom field value
added 164 characters in body
Feb
5
revised Query custom post type based on post id and custom field value
added 506 characters in body
Feb
5
comment Query custom post type based on post id and custom field value
I changed the custom field values from initials to the full name of regions. Then, I figured, I could compare them with region names on the region pages (North Region is both the post title of a region page, and a value of a the custom field news_region. Having trouble with it, however. My mod of your code does not seem to grab the region post type title for comparison. Will add code to my original question.
Feb
5
comment Query custom post type based on post id and custom field value
Right now I'm using a standard query which lists all the news items on all the region singles.
Feb
5
comment Query custom post type based on post id and custom field value
No. not trying to compare first letters. Trying to show news items with 'SE' custom field attached (could be more regions later) when on the Southeast Region page, and news items with 'SW' custom field when on Southwest Region page. Can see a clue about how to make your code work using the custom fields assigned to news items, however. Will give it a shot and be back. Thanks.
Feb
4
asked Query custom post type based on post id and custom field value