Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

The tag has no usage guidance.

0
votes
1answer
8 views

How can I change preview URL?

How can I change the preview URL in Wordpress? When creating a post in Wordpress, there is a Preview button which takes you to the draft view. Because I have a custom integration of Wordpress and don'...
0
votes
0answers
20 views

Draft post previews using the incorrect URL, leading to a 404

I've recently moved a Wordpress installation to a new URL, everything works as expected, apart from draft post previews. The issue is, we're using a different address for the wordpress admin, and the ...
-1
votes
0answers
10 views

Post video preview in WP REST API

How to extend the API to obtain a preview image of a video manually uploaded to a post? I saw a lot of plugins that do this for YouTube or other media sites, but no one for manually uploaded videos.
1
vote
0answers
13 views

Video processing using ffmpeg in Wordpress (Video preview)

I want to preview the submitted video articles. As a clear example; youtube video thumbnails. But I'm not talking about a fixed image. When the mouse is over the thumbnail, it should show a few frames....
1
vote
1answer
14 views

Allow Previewer Role to Preview Posts

When I'm finished with a blog post, I would like to publish it ONLY to a select set of reviewers so they have the opportunity to fact-check the article or suggest edits before it's made available to ...
0
votes
0answers
11 views

Photogallery preview (NextGEN Gallery)

I would like to ask you for a little help. The client wants a photo gallery on his website with a few abilities (auto image downsizing, multiple files uploading etc.) I found a NextGEN Gallery as the ...
5
votes
4answers
452 views

Front end form to create a custom post with preview

how can i achieve a front end form with preview option to create custom post based on the input? I want it done without any plugin. A simple example will help a lot. This is not a ACF question but ...
0
votes
0answers
16 views

Preview post when using custom post page

I've got a custom user post page, where my users can post, but I'm missing a preview option, where the user can preview their post before they are posting it.. Preferable if it opens in a pop-up or ...
0
votes
0answers
34 views

Having SSL enabled on admin, but disabled on post preview and live preview?

I was trying to enable SSL on the admin of my WordPress site by adding following code in the wp-config.php define('FORCE_SSL_ADMIN', true); This works, however not only the admin area, the live ...
0
votes
0answers
47 views

Can't Preview Custom Post Types When Post Formats Are Enabled

I have created a pretty straightforward custom post type as follows: function my_custom_post_type() { $labels = array( 'name' => 'MyCustomPostType' ); $args = array( ...
0
votes
1answer
114 views

Custom Post Type Draft Preview Goes to 404

I have created a custom post type within a custom plugin. Here is my post type definition: function hrd_record_custom_post_type() { $args = array( 'description' => __( '...
0
votes
0answers
241 views

If Post has video display video as post thumbnail, else display featured image

I have posts with video as main content, when this is the case I'd like that the post preview of the same, would have its video as a post thumbnail instead of the featured image. Thought about the ...
0
votes
1answer
25 views

After Migration, images show up on a preview of the page but not the actual page [closed]

I'm helping out with a website that got a little bit broken when they changed hosts. The images stopped working for some parts of the website, so I am going through and trying to fix them. I somehow ...
1
vote
1answer
106 views

customize_preview_init: listening for any changes from Customizer preview area

I know I can listen for specific setting changes from the previewer by adding the following JS to the customize_preview_init hook: wp.customize( 'setting-ID', function ( value ) { value.bind( ...
1
vote
1answer
663 views

Disable single pages and archives and keep preview

TL;DR Does anybody know how I can disable single pages and archives for custom post types while keeping the preview mode? I'm looking for a way to disable the single and archive pages for a custom ...
0
votes
1answer
216 views

Customizer Image-Picker Preview Not Working

sorry for my English... . I am trying to implement an Image Picker in Customizer in order to choose and display a css-background-image on front-page.php. Fundamental it works as intended in Frontend....
5
votes
0answers
407 views

'Preview Changes' for custom meta boxes?

How can I have the 'Preview Changes' working for custom meta boxes? For instance, I just want to test/ preview some text in a custom meta box but I don't want to save/ update because that post/ page ...
0
votes
1answer
24 views

How to track wordpress sub folders html page in google ananlytics [closed]

in wordpress site i created one one folder & put some html files(www.mywebsite.com/global/page.html). But google analytics is not tracking those html pages(www.mywebsite.com/global/page.html). ...
1
vote
0answers
177 views

Losing preview ability: W3 Total Cache + Post name permalinks

I've been seeing issues on sites when I enable W3 Total Cache (Using an aws cdn) where the ability to preview pages would be lost. I was just able to confirm this when enabling it on a new site. A ...
1
vote
1answer
98 views

Show preview of post changes on page

I've got a pretty unusual feature request or just don't know how to phrase it, since I couldn't find anybody else trying to do this. In the editor of the front page I've added a custom meta box to ...
7
votes
1answer
595 views

How are WordPress draft previews generated?

I'm trying to troubleshoot page previews in WordPress. I can't entirely figure out how they work. But I do know: The preview ID and preview nonce uniquely identify the preview and indicate where to ...
0
votes
1answer
149 views

Change target of view link in admin

We're developing across two sites. One site holds our content, the other actually displays it. So when we are viewing posts in the WP admin, the View link is pointing to the instance it's on, which ...
0
votes
1answer
629 views

Error 404 when saving or previewing one specific page [closed]

While the whole site seems working correctly, I have one specific published page that will throw a 404 error when previewing or saving. WP 4.6.1 installed: Attempts made till now to fix: saved ...
3
votes
1answer
90 views

<!--nextpage--> and previews

I am trying to preview my blog post that has <!--nextpage--> but clicking on any of the other pages just brings back to the home page. There was an old thread that never got resolved 4 years ...
1
vote
1answer
624 views

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

Disable “preview changes” button

How can I hide the "preview changes" button from the admin panel? Can anyone help?
6
votes
1answer
2k 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 ...
-1
votes
1answer
2k 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
34 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 ...
3
votes
1answer
276 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 ...
1
vote
1answer
2k 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 ...
0
votes
1answer
3k views

Save Draft and Preview not working (1 post)

I'm on WP 4.3, latest. The "Save Draft" and "Preview" functionality aren't working. Drafts are not being saved. Clicking that button takes me to the home page of my website. Same with Preview. I ...
1
vote
2answers
677 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 '</...
2
votes
0answers
51 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 ...
3
votes
0answers
71 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 ...
0
votes
2answers
2k 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 ...
1
vote
1answer
785 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 ...
0
votes
0answers
281 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. That's why I guess an iframe is actually a good idea. The frontend includes ...
2
votes
3answers
6k 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
69 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
23 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 ...
4
votes
1answer
2k 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 ...
2
votes
2answers
1k 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
2answers
1k 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
1k 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
291 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: http://example.com/news/1/...
0
votes
1answer
57 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
37 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?
1
vote
1answer
1k views

WordPress version 3.8 – Preview button not working for editor

After finishing developing my site, I updated WordPress to version 3.8. Everything works, but for some reason, an editor cannot click on the Preview button in the back end. Visiting the link http://...
7
votes
1answer
1k 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).