The tag has no usage guidance.

learn more… | top users | synonyms (1)

12
votes
2answers
22k views

WordPress Theme Preview Image

I'm developing a custom WordPress theme. When I go to select themes in the Appearance menu, my theme does not have a preview image. Is there something I need to do to get a preview image to show up? I ...
10
votes
2answers
227 views

Approve post directly from preview mode?

How do I approve a post directly from preview mode, instead of having to return to edit mode and/or "list of posts" mode? I'm script-matically uploading several (hundred) posts, but want to live ...
7
votes
1answer
538 views

View homepage in a preview mode

Is there any way to view your homepage in a preview mode, so that I can check how my posts will look on the homepage before publishing them (i.e. to make sure the featured image looks right etc).
5
votes
1answer
2k views

Post/Page Preview Template

Is there a way to have a custom template php file that is only used for previews instead of it using the single.php file? This way the user knows they are in preview mode?
5
votes
2answers
752 views

Passing current cookies in wp_remote_get to get Draft Post Preview

I want pass current user cookies in wp_remote_get function to get a Draft Post Preview page content. I check already the questions: What URL do you pass to wp_remote_get to load the body of the ...
4
votes
1answer
53 views

Post preview mechanism architecture

I'm trying to find how WordPress is dealing with preview posts before publish. I'm entering the edit mode of a post that I want to edit, changing some stuff, pressing preview, and getting the preview ...
4
votes
1answer
488 views

Can't preview drafts after upgrade to 4.0!

I recently updated to wordpress 4.0. However, when I try to preview my drafts, I receive an error saying that I do not have the permission to do so. I've cleared my cache and cookies and restarted my ...
4
votes
1answer
677 views

Unable to get Preview of Uploaded image within a Custom Meta box

I first followed the steps in this tutorial. Added the Image Uploader, tried it out but I realized it's an older version of the WP Uploader... So I then found this post, and now my uploader is ...
3
votes
1answer
136 views

Multiple meta values for same meta_key adding on “Preview Changes” hit but not on saving or updating post

I'm taking multiple location values with each post, so it's an array (always). My post meta form field is like so: <select name="<?php echo $project_prefix; ?>offer_locations[]" id="<?php ...
3
votes
4answers
169 views

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 ...
2
votes
2answers
2k views

How to make scheduled post preview visible to anyone?

When I write a post and schedule it for later publishing, WordPress will allow me to preview the post as if it was already published but I need to be logged in as administrator (or anyone who is ...
2
votes
1answer
971 views

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="?p=52&amp;preview=true" id="post-preview" tabindex="4">Preview</a> the post is saved and the ...
2
votes
1answer
2k views

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 ...
2
votes
1answer
2k views

“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. ...
1
vote
1answer
343 views

Preview Changes button missing on custom post type page since updating to 3.4

Any idea why when I'm on post.php of my custom post type page I no longer see the Preview Changes button? I have checked on an old installation and it shows on WordPress version 3.3 but not 3.4. The ...
1
vote
1answer
243 views

Custom post preview without saving

I've added JS to my responsive theme which changes the preview button on the post edit page into a link to an offsite page. The page contains a 320px x 568px iframe which shows the post in the mobile ...
1
vote
1answer
178 views

Show preview posts and pages to clients

My clients wants to see the changes i have made in his wordpress site before publishing. Is it a good method, paste the page preview link to show to him? Of course this method only works if we are ...
1
vote
1answer
385 views

Custom post type “preview” not working

I'm having an issue with custom post type "draft" post previews redirecting to the site home page, if I have pretty permalinks enabled. For instance, I create a new "Project", save as draft, and ...
1
vote
0answers
23 views

Which ID does WordPress actually use to display published/drafted posts in preview mode?

I can identify if in preview mode or not easily by calling is_preview(). I can also get the id of the post being previewed by calling get_the_ID(). The return value of the get_the_ID() is not ...
1
vote
0answers
30 views

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 ...
1
vote
1answer
252 views

I can't preview post's change once they are published

The preview function works fine when posts are just draft. The url looks like this : http://exemple.domain.com/blog/?p=12&preview=true Then when I pubish my posts, let's say I want to change ...
1
vote
0answers
41 views

How to allow potential clients to preview a theme

I have several themes installed in a Wordpress network. New clients will receive a network sub-site. I'd like them to be able to preview the available themes that are installed in Wordpress. There ...
1
vote
0answers
277 views

Theme Live Preview on Front End?

I have a membership site where a member will fill out a form (FormidablePro, if that matters). This form contains information that will be the content on a site which will be created once the form is ...
0
votes
1answer
437 views

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 ...
0
votes
1answer
521 views

What program can I use to preview my wordpress site?

Apologies if this is the wrong site to be asking this, but I just downloaded a template for a website that I want to customise. On my Mac I have a program called Espresso which allows me to 'preview' ...
0
votes
3answers
3k views

Show only preview of posts on the homepage?

Is it possible to only have a couple lines shown per post (or even 0 lines) on the homepage? Instead of dumping the whole article on the page?
0
votes
2answers
339 views

preview_post_link for Custom Post Types

I've got a custom post type, and I'd like to be able to change the preview link but from what I can tell, the hook for preview_post_link only affects the default post type. Any guidance? Here's what ...
0
votes
1answer
78 views

Add unique id to Preview URL

Is there an easy way to append a unique ID to the preview URL when the preview button is clicked by a user? So this: http://example.com/news/1/title/?preview=true Becomes: ...
0
votes
1answer
470 views

Trim Post Content on Home Page

Whenever I try out a new theme, I select it depending upon preview, which shows latest posts on Home Page, having only trimmed content with featured image and not all long post content. However, ...
0
votes
1answer
259 views

Hide content from Post Preview

Is it possible to hide content in Post Preview (that is not hidden when the post is published)? I have customised single.php quite extensively and there are a few elements that I do not want my ...
0
votes
1answer
200 views

404 when Previewing an unsaved draft

I just started at a new job and I'm being thrown into some pretty heavy WordPress bugs on their heavily modified system. Basically what's going on is that they have their own CMS that handles most of ...
0
votes
1answer
248 views

post preview/thumbnails not displaying correctly- linking to “home” instead of post?

Live site In the lower portion of the landing page, I'd like there to be three blog post previews- just the headline and thumbnail for the three most recent posts. I'm using the following code: ...
0
votes
1answer
86 views

How to include featured image on blog post preview?

I wanted to include the featured image to the blog posts' preview on the front page, however either I get the entire image with the options of cropping some of it off or I can't have any image on my ...
0
votes
1answer
24 views

How to share posts (and plugins) between existing site and new, separate dev/test installation?

A client has an existing WP installation. I want to setup a dev/preview site that pulls same page/post content as existing site (and has same active plugins and settings), and I don't want the ...
0
votes
1answer
156 views

get_post_meta($post->ID) returns empty string when in preview mode of custom post type

I've got my custom post type 'event'. I got tne next code in single-event.php: get_header(); the_post(); echo '<pre>'; echo "$post->ID\n"; var_dump(get_post_meta($post->ID)); echo ...
0
votes
0answers
81 views

Post preview in iframe without saving the post

I aim to make a live preview inside an iframe of the current edit post. The preview should render the post content only. Thats why I guess an iframe is actually a good idea. The frontend includes ...
0
votes
0answers
23 views

display widget areas by adding standard code to page address

How to view all the widget areas on a page by adding code to page address... Some time ago I saw a tutorial video on WordPress that explained how to highlight all the widget areas available on a ...
0
votes
2answers
552 views

How to preview your website without the top WordPress admin bar, but remain signed in?

Is there a way to preview your website without the top WordPress admin bar, but remain signed in? Basically, want to continue making changes in the panel and review the site, but without the top ...
0
votes
1answer
43 views

Disabling “View” mentions from backend?

I'm using wordpress as a content manager or something, so i'm using backend only (and i've disabled the frontend with a ghost theme which redirect to the admin panel). The question is: how could i ...
0
votes
1answer
22 views

how to chang preview of list of articles of one category?

I have downloaded wp tempalte demo where I have articles dive into different categories. Each category has its own button in main menu. When I click to show the category, list of its articles are show ...
0
votes
0answers
175 views

Cant Preview Drafts After WP 4.0 Update

I found one other thread on this, and tried the fixes, but none worked. I've updated a new client's site to WP 4.0, along with a new customized theme, and now we can't preview our drafts. When you ...
0
votes
1answer
483 views

After changing wp from subdirectory to root I can't preview any changes to a page or post

I followed the guideline from WP Codex. Changed the site url in general settings Copied the .haccess and the index.php files from the subdirectory to the root Edited the root index.php (new copied ...
0
votes
2answers
476 views

Redirect preview single post link to a page

I have custom post types setup such that the items don't have or need single-post pages. The posts will be displayed via a custom query on a page. My question is when i create a single post (on the ...
0
votes
1answer
36 views

allow previews outside wordpress folder (Outsourcing WP previews)

I am outsourcing the wordpress and I already figured out the external view. I even know how to make a WP query for previews, but when I want to do that I simply cant - wp-load stops all operations and ...
0
votes
0answers
31 views

Preview own posts if logged in

I want to make it so anyone logged in can view their own posts if draft or pending via the URL ?p=post_ID&preview=true. What is the best way to do this?
0
votes
0answers
934 views

WP 3.8 – Preview button not working for editor

After finishing developing my site I updated WordPress to 3.8. Everything works, but for some reason, an editor cannot click on the Preview button in the backend. Visiting the link ...
0
votes
0answers
374 views

“Preview Changes” giving 404

Post Preview works fine, but after a post has already been published and changing the content and "previewing changes" before updating it again, it gives a 404. I think I've found out why this is ...
0
votes
2answers
110 views

How to include the admin bar?

I'm working on a plugin which needs a custom Preview page. In this page i call the neccessary wp functions(wp-load.php & wp-admin/includes/admin.php). The problem is, that the admin bar is not ...
0
votes
2answers
246 views

Showing wordpress theme demo at front end

i am an wordpress developer and i am currently in a project in which i have 15 wordpress responsive themes and can be downloaded by users of my site. In this , i want the feature to show the user ...
0
votes
1answer
124 views

Why do previews work in one browser, but not another?

I keep having an intermittent issue where the admin bar disappears from a wordpress site I often use, when using my main browser (Google Chrome). I can access /wp-admin/ no problem, and another ...