Tag Archives: page

post preview

Snippet: Hide post view and post preview admin buttons

Add following snippet to “functions.php” Snippet Result It will hide the “Preview” and “View Post” button in the edit post area of the WordPress admin. It is good to use if your theme does not support post previews.

Page Template

Snippet: Page Template Header

Add following snippet to the top of your page template file. Snippet Result

disable-autosave

Snippet: Disable WordPress From Auto-Saving Posts

Add following snippet to “functions.php” Snippet

disable-autop

Snippet: Remove Auto added P tag

Add following snippet to “functions.php” Snippet

Shortcode: Use Raw Text

Add following snippet to “functions.php” Usage Snippet

Page Template

Snippet: Get Template of Current Page

Add following snippet to “functions.php” Usage Snippet

Snippet: Pre-populating content for new posts or pages

Add following snippet to “functions.php” Snippet