Enable commenting on front-end preview page for pending posts

We are in the process of allowing authors to collaboratively be a part of the editorial process. They will have access to all pending posts’ preview pages (not post-edit pages). I want to allow these users to post a normal comment whenever the post is in pending post_status. Upon research, a comprehensive solution has been … Read more

Preview Button Custom

Ive created a simple plugin which changes the preview link to the correct location as its a custom WordPress install into an existing site framework. Using ‘preview_post_link’ filter I can change the link successfully to say: http://www.domain.com/wp-custom.php?p=123456&preview=true This works perfectly upon hovering over and inspecting the a tag: <a class=”preview button” href=”http://www.domain.com/wp-custom.php?p=123456&amp;preview=true” target=”wp-preview” id=”post-preview”>Preview</a> Right … Read more

How can I make the “Preview Post” button save and preview in the same window?

When you choose “Preview”, which is actually a link, <a class=”preview button” href=”https://wordpress.stackexchange.com/questions/35517/?p=52&amp;preview=true” id=”post-preview” tabindex=”4″>Preview</a> the post is saved and the preview opens in a new window. I’m sure there is a javascript event attached to this button, I’d like to override it so that it saves and then preview link opens in the same … Read more

How to show updated edit on preview URL without clicking preview button

http://localhost/demosite/?page_id=19&preview=true ^ This is the preview URL for a page with id 19, now whenever I made some changes to it’s page content and refresh above URL it don’t show the latest changes I made unless I click preview button, I think preview button trigger some kind of function which save page and then above … Read more

Page with page template not using template in Preview

I am using a page template created by myself, which is showing and working correctly in page backend. It also works on the front end. The problem: Preview shows the normal “page.php” instead of using the template page. Any idea why this happens? I have never had this problem before. The template is called “page_temp_news.php” … Read more

“Preview Changes” button doesn’t show changes for previously published posts/pages

When go in and make some changes to an article and click the “Preview Changes” button (without having first saved anything), another window/tab opens, but the article shown is the last saved version. That is, it’s not showing any new changes I made. Anyone else run into this, or am I not understanding the functionality … Read more

View category in the preview of Theme Customizer

I am building a theme which Theme customizer changes colors, sizes, etc. and has also the option to choose a category and style that category specifically. How can I display that category in the preview (only when the user is changing the corresponding options) instead of the default home/front page displayed by default? EDIT I … Read more