Questions tagged [previews]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-2
votes
0answers
17 views

How to Preview WordPress Posts Below Text Editor? [closed]

I want to add a section in the WordPress post editor which will display a live preview of the WordPress post. This preview will just like the Stackexchange website. And there will be no need to click ...
0
votes
0answers
7 views

How to change Gutemberg preview URL via functions.php

I should change the preview URL link on Gutemberg to get the admin to immediately view the article which has the URL of each article with this form: https://website.com/hkdr/category/#post-slug Does ...
0
votes
0answers
13 views

How to create preview link of draft post with slug

In Wordpress, the Draft post preview will have the below link: mysite.com/?p=2000&preview=true But I want to custom this link to slug/permalink like: mysite.com/my-category/my-post-slug?preview=...
4
votes
0answers
40 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; } ...
0
votes
0answers
21 views

How to display default widgets on sidebar?

I want to display widgets to sidebar while previewing theme on wordpress.org Now I turned on sidebar but by while previewing on wordpress.org the sidebar is empty. Is it possible to display widgets ...
1
vote
0answers
22 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/...
0
votes
1answer
40 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
2answers
183 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) ...
0
votes
0answers
20 views

How do you change the thumbnail size on WP link embed in the Block Editor?

When I use the WordPress Embed block in the Block Editor, the preview image pulls the thumbnail (150px) and stretches it, rather than grabbing the featured image and sizing it down. How can I change ...
0
votes
1answer
12 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 ...
1
vote
0answers
16 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 ...
0
votes
0answers
19 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", ...
1
vote
0answers
83 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 ...
0
votes
0answers
15 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 ...
3
votes
1answer
4k 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'...
1
vote
1answer
27 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 ...
6
votes
4answers
5k 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
18 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
38 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
1answer
396 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
1answer
49 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
260 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
1k 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
455 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....
7
votes
1answer
724 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
26 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
228 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
124 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 ...
6
votes
1answer
950 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 ...
1
vote
1answer
874 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
992 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
150 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 ...
2
votes
1answer
981 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
2k views

Disable “preview changes” button

How can I hide the "preview changes" button from the admin panel? Can anyone help?
7
votes
1answer
4k 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
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 ...
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
432 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
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 ...
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
1k 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
62 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
84 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
4k 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
1k 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
347 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 ...
4
votes
3answers
10k 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
78 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
29 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 ...