Milo

San Francisco

electrocinematic.com

I like bicycles and cats.

http://electrocinematic.com/

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.
2d
comment Rewritten URL not loading WordPress environment
you can handle everything within WordPress and avoid this issue, see this question.
2d
answered Wordpress Prevent 404 on missing custom post
2d
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.
2d
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
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
1 2 3 4 5