37,664 reputation
21738
bio website metaflora.net
location San Francisco
age
visits member for 3 years, 8 months
seen 3 mins ago

I like bicycles and cats.

http://metaflora.net/


4h
comment Add custom WP_Query after the first 3 posts
don't put normal post output inside else? you don't want one or the other, you want both.
6h
comment Wholly Custom Permalinks example.com/a-b/slug
technically anything is possible, it's just a question of how important this specific structure is to you and how much time you want to invest in making it work. Rewrite API.
11h
comment Parse error with is_tax. Header.php is unchangeable
$term=g et_term_by should be $term=get_term_by, remove the space.
22h
comment Wrong request query on cpt and tax
root/ifcc-categories/ returning 404 is expected, taxonomy archives are for individual terms, there is no taxonomy-wide archive for all terms.
2d
comment WP DB Location for “Next Post to Create” Index Value
you have to alter the table and set AUTO_INCREMENT
2d
comment WP DB Location for “Next Post to Create” Index Value
The posts table isn't just posts, it's also pages, revisions, menu items, and custom post types. is there a reason why you'd need it to resume at a particular place?
Dec
20
comment Custom Post type and Custom taxonomy with URL rewrite worked but template did not
if you're receiving 404s, then the code you linked is not working, it has nothing to do with templates. have you flushed rewrite rules?
Dec
19
comment How to refresh a cached page after a cookie has been set by a user?
unfortunately 3rd plugin support is off-topic. search around the web for W3TC fragment caching.
Dec
19
comment How do I make wp_localize_script variables available for child theme?
I've just tested enqueueing, localizing, dequeueing, and re-enqueueing with the same handle and it worked. Add all of the relevant code from both the parent and child themes so we can see what it looks like.
Dec
19
comment How do I make wp_localize_script variables available for child theme?
you can manipulate the order that your enqueue function runs by changing the add_action priority. have you tested what happens if you dequeue the original and enqueue your own with the same handle?
Dec
19
comment Why use %d in php when in function
read the documentation
Dec
19
comment CSS acting differently in and out of Wordpress
unanswerable without seeing both in context.
Dec
19
comment How to get the real address from a url (permalink)
you probably want something like get_queried_object then.
Dec
19
comment Loading different template on different url of same page
Show us the code you used to add the rewrite rule.
Dec
19
comment How to get the real address from a url (permalink)
It would be helpful to explain what exactly you're trying to do rather than ask about what you think the solution to your problem is.
Dec
19
comment Pin a post to the top of a page, other than the home page
Do you mean a sticky post?
Dec
18
comment Why load JS through the CMS framework?
@McJimbo can you cite some examples of these incompatibilities "all over the place" that are related to the enqueue system? In 6 years of developing with WordPress, the only issues I encounter stem from not using the API, or using it incorrectly. What do you suggest would be a better system for managing dependencies and load order between core, theme, and plugin scripts? of course, you are entirely free to not use the API, but I highly doubt you will simplify any aspect of your development in doing so.
Dec
18
comment Using WP_Query To Get Posts Randomly From today
documentation for after says "accepts strtotime()-compatible string", which I believe can parse strings like "today", "tomorrow" "week from thursday", etc..
Dec
18
comment Using WP_Query To Get Posts Randomly From today
if you inspect the output of var_dump($featured) after you run the query, you'll get a better idea of what's going wrong.
Dec
18
comment Why load JS through the CMS framework?
wp_enqueue_script isn't sending javascript through php, it's simply managing the insertion of script tags on the front end.