163 reputation
14
bio website evowebdev.com
location Santa Fe, NM
age 60
visits member for 3 years, 8 months
seen Apr 15 at 21:09

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


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
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).
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
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.
Dec
4
comment Starter Theme vs Parent Theme? Pros and cons
I think you explained it well. For blogs the parent/child model of theming works fine. For building a CMS or application, it can become problematic pretty quickly.
Dec
4
comment What is the Plural of WordPress?
Funniest thing I've seen here in a while: "Like Jesus, just more rules."
Apr
6
comment Custom Post Types don’t highlight in menu nav
Agreed. This is something I think should "just work", with "current-page-ancestor" automatically applied to the parent list item.
Mar
13
comment Alter BuddyPress member search to include search on added profile fields
Can make it required, but can't make it part of initial signup, right? In other words, they have to come back and edit their profile before they are required to complete that field?
Mar
9
comment Alter BuddyPress member search to include search on added profile fields
Yes, but I have to balance that against the ability to require the field be completed at signup. I may be missing something, but can't see where I can do that with BP extended profile fields.
Feb
14
comment Can't seem to do combined query AND sort?
I finally came to the same conclusion, Christian; hadn't gotten round to posting it as an answer. Thanks for your answer.
Feb
7
comment Can't seem to do combined query AND sort?
Tried that, and DATE works no better. CHAR works fine when not trying to both sort and do combo query. Format generated is yyyy-mm-dd (e.g. 2012-02-05) Just for kicks, tried AND rather than OR and got no results, so that may indicate that the query works, but that's not a lot of help, since AND is not the query needed to return proper results. Also created a new startdate custom field (same data, but different keyname) and cannot sort on that, either, with combination query (even though that key is not used in the query).
Feb
7
comment meta_query and strange orderby behaviour
I'm sure it is not the same value.
Feb
7
comment Can't seem to do combined query AND sort?
Actually, above code doesn't get the query right, either, as it shows everything in events (added some events that were past and it does not exclude them). Again, if I remove the orderby code (last 3 variables) the query works (excludes appropriate items). If I query only for start date or end date, then I can sort.
Feb
7
comment Can't seem to do combined query AND sort?
I want items ordered by start date. Dates are in yyyy-mm-dd format.
Feb
7
comment meta_query and strange orderby behaviour
Actually, it does not seem that sorting with the SAME metakey names is the problem. Just tried adding another custom field to create another start date with a different metakey name (2 start dates by different names) and that does not allow sorting either. Seems I can either do the combined query OR sort, but not both.
Feb
7
comment meta_query and strange orderby behaviour
That's the problem: when you change _city to _startdate, it reverts to sorting by post date.
Feb
7
comment meta_query and strange orderby behaviour
I'm having the same problem. Seems that you cannot sort by the same metakeys that are being compared in a relationship?