38,554 reputation
21840
bio website metaflora.net
location San Francisco
age
visits member for 3 years, 9 months
seen 11 hours ago

I like bicycles and cats.

http://metaflora.net/


12h
comment taxonomy term in URL slug won't forward to the correct term for custom post like it does for default categories/normal posts
sorry, I haven't tried your code to see what might be the issue. Basically, when a request is a 404, WordPress tries to figure out what you might be requesting by doing a LIKE query on the title. For whatever reason, your query isn't generating a 404, possibly due to how query vars are set, or if it is generating a 404, incorrect query vars make WordPress unable to guess what type of object you want. You need to inspect query vars and make sure they are the correct values for successfully restricting the query to the combined title/tax terms.
15h
comment Why are featured images sometimes cropped, and sometimes not
the size you ultimately see is controlled by your template. if you want an uncropped version, you either need to re-register the image size to be uncropped, or change which image size is being used when the image is output.
18h
comment Why doesn't a custom template page with pure html work?
if you view source, some markup is unclosed and there's no closing body or html tags, so it seems something is going wrong somewhere in your template and execution is halting. do you have debugging enabled?
1d
comment Create a page template with No Footer
Did you try get_footer(none); or get_footer('none');? The argument should be a string.
2d
comment call php file from form and use wp functions
Forms in WordPress should submit to a WordPress-generated front-facing or admin page so the WordPress environment is present. Do you have control over where the form submits to?
2d
comment Delivering a file instead of wordpress page
I've tested in twentyfourteen and it's working as expected.
2d
comment Delivering a file instead of wordpress page
oops, a couple of typos, sorry. forgot to return $query_vars, and the correct hook is parse_query.
2d
comment Delivering a file instead of wordpress page
You have to flush rules after adding or changing them. normally you'd do that on plugin activation/deactivation, but you can also just visit the permalinks settings page.
Jan
22
comment How can I get Wordpress CPT archives and page templates to work with prettified permalink settings?
post type archive templates should be named archive-$posttype.php
Jan
22
comment taxonomy term in URL slug won't forward to the correct term for custom post like it does for default categories/normal posts
The likely issue is that you have hierarchical terms, you need a rewrite rule for each level of hierarchy. query var values like technology%2Ftablets will not work.
Jan
22
comment How do I sort tags by menu_order
There is no menu_order for tags, perhaps you mean term_order?
Jan
22
comment Optimising specific Query with ACF meta objects
there are hooks for every action you do on the admin side, save_post, delete_post, publish_post. you would hook a function to those to update the contents of your option when a post from your cpt is added/published/deleted.
Jan
22
comment Custom meta Title for custom post type archive from page
you can create a page at /books/ and set your post type rewrite also to books, there should be no conflict there as long as you set has_archive to false. you'd have to run a custom query in your page to reproduce the archive loop you'd get if you used the post type archive instead of a page. your other option is to just use the cpt archive WordPress generates and then filter wp_title to set the title to whatever you want.
Jan
22
comment Changing custom post type URL issue
you would swap post_type=item&p=$matches[1] with item=$matches[1]
Jan
22
comment Function get_the_ID() doesn't return 404 and search pages
get_the_ID returns the numeric ID of the current post in the loop. 404 pages have no ID, and any archive or search page will have as many IDs as there are posts in the main query.
Jan
21
comment next_post_link for CPT only working for a few posts? weird!
both of those functions use get_adjacent_post which selects posts by date that are either greater or less than the date of the current post, so it seems it would skip posts that have dates identical to the current post.
Jan
21
comment next_post_link for CPT only working for a few posts? weird!
do the posts that are skipped happen to have identical publish dates/times?
Jan
21
comment 4.1 upgrade seems to have broken my Calendar page
it doesn't look like that's the same template as what's showing on your site. you've also got a custom query that you assign to the var $query but then never output the contents of that query.
Jan
21
comment Is it possible to add a superscript trademark symbol to a menu?
@Chad put it in a <sup> tag.
Jan
21
comment Is it possible to add a superscript trademark symbol to a menu?
You can also put html entities in a superscript tag: <sup>&trade;</sup>