41,979 reputation
22650
bio website electrocinematic.com
location San Francisco
age
visits member for 4 years, 3 months
seen 7 hours ago

I like bicycles and cats.

http://electrocinematic.com/


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
answered How to replace part of shortlink with nothing
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
30
awarded  Enlightened
Jun
30
awarded  Nice Answer
Jun
30
answered Need help with custom rewrite rule
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.
Jun
26
comment Custom form handling in WP.. the correct way?
If you're using name as a POST var, WordPress is trying to query for a post with a slug that matches that value. That's why you can't use any reserved terms as form element names, WordPress picks those up and it changes the main query.
Jun
26
comment Editted Theme Files Get Updated/Reverted Every So Often
it's not clear why theme files would get reverted or updated, but the proper way to edit a theme is to create a child theme.
Jun
25
comment Issue with wp_insert_post and post_content field error Could not update post in the database
you should only get the Could not update post in the database error if you're passing ID to update an existing post. Something doesn't seem right here if you're not setting that and getting this error.