41,658 reputation
22549
bio website electrocinematic.com
location San Francisco
age
visits member for 4 years, 2 months
seen 1 hour ago

I like bicycles and cats.

http://electrocinematic.com/


5h
comment ModRewrite not working properly
your rules have to go above the WordPress rules, because the last WordPress rule directs any request that isn't a physical file to WordPress for handling.
2d
comment Wordpress Prevent 404 on missing custom post
if you're not using posts for properties, there's no point in using a custom post type. you can just rename single-property.php to page-property.php.
Jul
2
comment Rewritten URL not loading WordPress environment
you can handle everything within WordPress and avoid this issue, see this question.
Jul
2
comment Displaying errors on the front end from my plugin
second link is for front end notifications, the error class works on both front and back end.
Jul
2
comment Include Class File in Wordpress
sounds like a scope issue.
Jul
1
comment CPT Rewrite Rules by date
oh hold on, you don't have a rule that handles URLs containing post-name.
Jul
1
comment CPT Rewrite Rules by date
check out monkeyman rewrite analyzer for debugging rules.
Jul
1
comment CPT Rewrite Rules by date
your rules don't contain myplugin, they start with events. also note that with_front is the post post type permalink prefix, which may not be what you want. also don't forget to flush rules when they change.
Jul
1
comment Displaying errors on the front end from my plugin
note that WordPress has an error class. also, this may be of interest to you.
Jul
1
comment Htaccess Rewrite
or before # BEGIN WordPress. putting it after probably won't work so well ;)
Jul
1
comment I am not getting result from php function that is json encoded
how are you passing the output from the first function to the second? also, why not just use an API function to get the post rather than custom SQL? using prepare is unnecessary because the result can't be injected.
Jul
1
comment Custom post type archive URL
You have to flush rewrite rules after making changes, not sure if that plugin does that for you. Honestly, post type registration is pretty trivial, code-wise, I suggest ditching the plugin and just doing it manually.
Jul
1
comment Custom post type archive URL
Did you set has_archive to true for your custom post type? Show us the code that registers the post type.
Jul
1
comment How to replace part of shortlink with nothing
if the second part is literally your code, then that is not valid php. you need to echo $post_url to output it. the code above is tested and definitely works.
Jun
30
comment How to Edit Layout of a Particular Post Format?
In what context? Only a post format archive has a specific template. Other contexts are theme-specific.
Jun
30
comment Need help with custom rewrite rule
did you flush rewrite rules? it's probably easier for your purposes to just use add_rewrite_endpoint, it generates the correct rules for you.
Jun
29
comment Wordpress Pagination problem When using if condition inside the loop
please search previous pagination questions, this has been asked and answered many times.
Jun
28
comment Custom form handling in WP.. the correct way?
one other note- you can move the creation of the WP_error object to inside the if condition, since it's not used outside of that case.
Jun
27
comment Override get_template_directory() in child theme?
post type registration has an action to allow you to modify them, maybe if you explain what you want to change in that file, you won't need to completely replace it.
Jun
26
comment Rewrite a 'page' URL based on query string parameters?
rewrite rules have to set query vars to produce a valid main query, your rewrite rule only sets your custom vars.