View post

Short description View any post from anywhere
Aliases view, find, front-end
Availability Anywhere
Description

Use the View post action to quickly search for any post and navigate to the front-end view of it. This action works for any post, page and custom post type that is publicly availably.

Keyboard Action will suggest you filtered posts to view while you type the search terms.

Syntax
view – View the currently editing post (see context awareness)
view [{search-term}] – Search for posts within the current post type (see context awareness)
view [{post-type = 'post'}, {search-term}] – Search for posts within a specific post type.

Example usage
view page contact – When on a page that isn’t of the ‘page’ post type, you can indicate that you want to search for pages using the preferred post type slug.
view product red shirt– Works for custom post types too, in this example it searches for WooCommerce products on your site.

Context awareness

This action has context awareness in a couple ways.

1. When editing a post
If you are on the edit-post page in the admin first suggestion Keyboard Action will give you when you type any of the aliases will be to view the current post.

2. Post type awareness
Another way this action is context aware is with the post type. When viewing a post overview, edit page or on the front-end, the action will know which post you’re looking at and will search and suggest posts based on your terms within that post type. For example, when viewing product ‘Blue’, you only have to type view red as the ‘product’ is implicit because you’re viewing a page of the same type.

When no post type is specified, and not viewing any of the post-type pages, Keyboard Action will fallback and provide suggestions for the ‘post’ post type.

Note: This command does not work for post types that aren’t public or don’t use the official WordPress UI.

For performance reasons there is currently a limit of 2500 posts that can be indexed for suggestions. Have more? Please get in touch!