Questions tagged [previews]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
272 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
0 answers
113 views

Looking for a way to insert PDF image preview in TinyMCE

We're still using TinyMCE as our post editor. When Editors use the 'Add Media' button to select a PDF from the Media Library, they choose the thumbnail or medium size image from the Attachment Display ...
jchwebdev's user avatar
  • 765
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
27 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
33 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
58 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
367 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
  • 330
2 votes
1 answer
174 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
113 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,788
1 vote
0 answers
88 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
10k 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
40 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
28 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
290 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
25 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
6 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
  • 205
1 vote
1 answer
52 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
54 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
  • 429
1 vote
1 answer
861 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
74 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
405 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
577 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
  • 321
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
245 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
220 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
  • 931
3 votes
1 answer
177 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
9 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
39 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
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 '</...
SergeAx's user avatar
  • 127
2 votes
0 answers
97 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 ...
Meglio's user avatar
  • 131
3 votes
0 answers
140 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 ...
ad2003's user avatar
  • 251
0 votes
2 answers
6k 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 ...
andrewheins's user avatar
1 vote
1 answer
2k 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 ...
And Finally's user avatar
0 votes
0 answers
377 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 ...
Aley's user avatar
  • 351