Questions tagged [previews]
The previews tag has no usage guidance.
40 questions with no upvoted or accepted answers
4
votes
2
answers
2k
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 ...
3
votes
0
answers
175
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 ...
2
votes
1
answer
201
views
Post preview and oembed provider issue using polylang plugin with subdomains
[ X ] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
[ X ] The issue still exists against the latest master branch of Polylang and the latest WordPress ...
2
votes
0
answers
108
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
0
answers
108
views
Preview endpoint REST API gives 403 error
I am running a local Wordpress backend (port 8888) with a VueJS frontend (port 8081) that loads data via the json REST API. This works fine. However, when I click a preview link in the backend (for ...
1
vote
0
answers
43
views
Preview for revision?
Is this possible: to allow admins to preview revisions from revision history, either with a plugin or hook?
I would like to allow the admin to view post and page revisions, without having to restore ...
1
vote
0
answers
123
views
How to add custom preview urls for some pages?
I use WordPress as a headless CMS through its API.
When clicking on Preview it takes me to domain/slug. This works for most of the pages, however there are some pages that are under sub-path domain/...
1
vote
0
answers
47
views
Preview post on frontend before submitting it?
I found a related (old)post here
I'm currently using usp pro as a frontend.
I'm creating a free pet memorial site, and want the user to just fill out the form, (NO ACCOUNT REQUIRED),and the post is ...
1
vote
0
answers
371
views
How do you manage the Gutenberg block previews in the admin area?
How can I manage Gutenberg block previews in the admin area?
Example:
If I have a block developed on bootstrap and with my custom css, in the admin area do you load bootstrap and your css to get the ...
1
vote
1
answer
59
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 ...
1
vote
0
answers
254
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
1
answer
225
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 ...
1
vote
2
answers
3k
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 '</...
1
vote
2
answers
2k
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 ...
1
vote
0
answers
61
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
0
answers
417
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
0
answers
20
views
PSD File Upload - Media Library not Displaying Thumbnail
I've managed to modify WP so it allows .ai and .psd uploads using the following code:
add_filter('upload_mimes', 'custom_upload_mimes');
function custom_upload_mimes ( $existing_mimes = array() ) {
...
0
votes
0
answers
14
views
Not working Mobile view and Desktop view properly when we searched on website
As we were working on WordPress the problem arose when it did not accept mobile view and desktop view properly
Even it was published to check whether it is working or not
please tell us how to rectify....
0
votes
1
answer
177
views
Nonce validation in REST API
I am creating a headless Wordpress website. Wordpress backend (port 8888), VueJS frontend (port 8081). Data is loaded via REST API. This works fine.
Now I want to implement the preview-functionality. ...
0
votes
0
answers
114
views
How to force Gutenberg to follow all custom CSS styling in preview?
I noticed that the live website version can often be different to preview in Gutenberg. For example, this CSS is added as additional/custom CSS through Styles menu:
.no-link-underline:link {
text-...
0
votes
0
answers
99
views
Preview Problem Yoast SEO
The problem is that the preview image/description that shows when sending the link to anyone , for example on whatsapp / messenger it shows the old logo / description
and i have already changed that ...
0
votes
1
answer
781
views
Wordpress + Polylang - Error 404 when trying to preview draft post on different language
So, i installed Polylang and the problem I am facing is related to the post preview function on my WordPress website. When I preview a post on different language than default, it takes me to a 404 ...
0
votes
0
answers
32
views
Show preview of wordpress posts on external html sever
I used to have this working, however, ionos started chartging me for having wordpress, when I said I am not paying for a free site they deleted access to my blog. All the program files are there but I ...
0
votes
0
answers
45
views
Wordpress search shows protected content
I have noticed many times that WordPress search results reveal protected/locked content. Is it a security issue or do search results show the webpage as viewed by the admin?
Sometimes, the content of ...
0
votes
0
answers
121
views
Preview url not working outside wp-admin
So, I created a link in the frontend which allows the user to preview their post. However, when I click on it, it takes me to the published post instead of previewing the changes I made.
Here is what ...
0
votes
1
answer
2k
views
Getting 401 unauthenticated error in WP Rest API revisions
I'm trying to fetch preview data through WP Rest API using a url such as /wp-json/wp/v2/pages/1140/revisions/1653.
An extra header is also included: 'X-WP-Nonce': <nonce> - nonce comes from WP.
...
0
votes
1
answer
17
views
Customizer Appearance Issue
I am developing new WP theme and it's in the phase of beta testing. So, it has succesfully installed and it's working on some sites. But, now there is one problem on particular host server. (shared ...
0
votes
0
answers
35
views
Custom post type single page uses the right template in preview mode but shows a different template after being posted
I've been developing a Wordpress theme. I've created a custom post type called blog in functions.php.
// Blog Post Type Creation
function te_blog_type() {
register_post_type("blog",
...
0
votes
0
answers
29
views
Post thumbnail not working when previewing post
In my theme, thumbnails are working just fine for the most part. But when I preview a post by clicking the "Preview changes" button, about 3/4th of the thumbnails on the page are broken. When I test ...
0
votes
0
answers
89
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
0
answers
46
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
1
answer
603
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....
0
votes
0
answers
391
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 ...
0
votes
1
answer
37
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
1
answer
81
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
0
answers
41
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
2
answers
598
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
3
answers
423
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
1
answer
231
views
Latest news mini images
I tried to find an answer on websites and other forums, but found nothing. I will try to explain my problem.
I need to change my WordPress website so that it displays a small image for all news ...
0
votes
1
answer
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 ...