Skip to main content

Questions tagged [previews]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 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....
Indian Shades's user avatar
0 votes
1 answer
28 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. ...
klaaskox's user avatar
  • 111
0 votes
0 answers
27 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-...
Destroy666's user avatar
1 vote
0 answers
20 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 ...
klaaskox's user avatar
  • 111
0 votes
1 answer
14 views

Site Editor: Pattern previews too small?

I created a Block Theme, and when viewing my patterns in the "Site Editor", they're displayed too narrow in the preview: When activating the Twenty Twenty Four block theme, they are ...
beat's user avatar
  • 43
1 vote
0 answers
26 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 ...
Jillian Hoenig's user avatar
0 votes
0 answers
24 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 ...
Ahmed Ali's user avatar
0 votes
1 answer
577 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 ...
moqer109's user avatar
0 votes
1 answer
2k views

Custom gutenberg block image preview not working

I created a custom block. It works but not able to get the block preview image working. Is there anything else I need to do? I am using create-guten-block to create the block. Can anyone please help? /...
Mangesh Yadav's user avatar
0 votes
0 answers
28 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 ...
Rick's user avatar
  • 1
0 votes
0 answers
37 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 ...
david's user avatar
  • 1
0 votes
1 answer
64 views

Live reload preview just reloads forever

There is a new preview feature on WordPress that looks like this: When it's clicked, it reloads the preview over and over and over again. Why would this happen? I tried disabling different plugins ...
kawnah's user avatar
  • 123
3 votes
2 answers
456 views

How to make the Preview button automatically open new tab?

In the past year or so the Preview button does not automatically open the preview tab anymore, and I need to click another button to do that. Is there a way to skip this dialog? Related: Shortcut for ...
Ooker's user avatar
  • 332
2 votes
1 answer
184 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 ...
Nils Riga's user avatar
0 votes
0 answers
115 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 ...
Mike Bensen's user avatar
5 votes
1 answer
1k views

Disable device preview options in the block editor

In a recent update to WordPress, the following responsive device preview system was added to the Block Editor: Easy to hide them via: .block-editor-post-preview__button-resize { display: none; } ...
Christine Cooper's user avatar
  • 8,778
1 vote
0 answers
115 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/...
haxpanel's user avatar
  • 157
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. ...
haxpanel's user avatar
  • 157
4 votes
2 answers
12k views

How to remove author name and link from a shared link preview?

I have a weird problem with a wordpress site I'm working on, when we share links for it on discord shared link contains my login name and a link to author posts page (index is a page not a blog page) ...
Zardoz's user avatar
  • 43
0 votes
1 answer
15 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 ...
Siniša Knežević's user avatar
1 vote
0 answers
45 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 ...
JoBe's user avatar
  • 171
0 votes
0 answers
33 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", ...
practicemakesperfect's user avatar
1 vote
0 answers
328 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 ...
FrancescoM's user avatar
0 votes
0 answers
26 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 ...
Thomas Park's user avatar
8 votes
1 answer
11k 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'...
bart's user avatar
  • 225
1 vote
1 answer
53 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 ...
Nevo's user avatar
  • 111
7 votes
4 answers
9k 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 ...
user avatar
0 votes
0 answers
62 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 ...
user9795842's user avatar
0 votes
0 answers
45 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 ...
Edward's user avatar
  • 439
1 vote
1 answer
901 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' => __( '...
Kevin M's user avatar
  • 31
0 votes
1 answer
84 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 ...
Bbshot's user avatar
  • 11
1 vote
1 answer
409 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( ...
rugbert's user avatar
  • 168
1 vote
1 answer
2k 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 ...
taymless's user avatar
  • 123
0 votes
1 answer
592 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....
Friedrich Siever's user avatar
8 votes
1 answer
1k 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 ...
Run's user avatar
  • 331
0 votes
1 answer
37 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). ...
PRIYA's user avatar
  • 101
1 vote
0 answers
248 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 ...
excessive34's user avatar
1 vote
1 answer
222 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 ...
taymless's user avatar
  • 123
6 votes
1 answer
1k 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 ...
ΓΓIICK's user avatar
2 votes
1 answer
2k 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 ...
Yazmin's user avatar
  • 327
0 votes
1 answer
1k 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 ...
Riccardo's user avatar
  • 961
3 votes
1 answer
182 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 ...
Archimedes Trajano's user avatar
2 votes
1 answer
1k 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 ...
Aumkar Thakur's user avatar
1 vote
1 answer
3k views

Disable "preview changes" button

How can I hide the "preview changes" button from the admin panel? Can anyone help?
Alex's user avatar
  • 41
10 votes
1 answer
5k 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 ...
Dima Gimburg's user avatar
-1 votes
1 answer
3k 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 ...
theJuls's user avatar
  • 139
0 votes
1 answer
40 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 ...
Be Brilliant's user avatar
3 votes
1 answer
606 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 ...
Mayeenul Islam's user avatar
1 vote
1 answer
4k 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 ...
Michelle's user avatar
  • 3,438
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 ...
PKHunter's user avatar
  • 277