Skip to main content

Questions tagged [previews]

Filter by
Sorted by
Tagged with
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() ) { ...
Morris's user avatar
  • 103
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....
Indian Shades's user avatar
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. ...
klaaskox's user avatar
  • 111
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-...
Destroy666's user avatar
1 vote
0 answers
107 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
34 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
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 ...
Jillian Hoenig's user avatar
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 ...
Ahmed Ali's user avatar
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 ...
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
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 ...
Rick's user avatar
  • 1
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 ...
david's user avatar
  • 1
0 votes
1 answer
75 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
572 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
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 ...
Nils Riga's user avatar
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 ...
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,857
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/...
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
14k 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
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 ...
Siniša Knežević's user avatar
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 ...
JoBe's user avatar
  • 171
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", ...
practicemakesperfect's user avatar
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 ...
FrancescoM's user avatar
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 ...
Thomas Park's user avatar
8 votes
1 answer
12k 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
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 ...
Nevo's user avatar
  • 111
7 votes
4 answers
10k 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
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 ...
user9795842's user avatar
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 ...
Edward's user avatar
  • 439
1 vote
1 answer
930 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
91 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
412 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
  • 178
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
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....
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
38 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
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 ...
excessive34's user avatar
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 ...
taymless's user avatar
  • 123
6 votes
1 answer
2k 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
  • 971
3 votes
1 answer
190 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
2k 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
4k 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
608 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,458