I've a plugin for Portfolio CPT (can be downloaded from here: http://bit.ly/1tEj5bC), using this plugin, every thing works fine. But when i edit any portfolio entry and click on 'Preview Changes' BEFORE saving the edited entry, instead of showing edited content, it gives me error 404.
The url which gives 404 error is something like this ...
Now, if i remove
post_format=gallery parameter from this URL, it shows the portfolio post. So, If i remove post-format support in the plugin, it does not append this parameter when viewing the draft but i need this plugin to support post-formats.
How to resolve the issue?
Update: I've tested two more third party plugin for portfolio CPT, adding post formats support in those plugin also leads to same error. It means, most probably, there is nothing wrong with the plugin code.
JFYI, post formats support is being added by passing following args through
'supports' => array( 'title', 'editor', 'thumbnail', 'post-formats'),