We've found 16 snippets for you in Posts & pages
Disable Content Editor for Specific Page Template

Disable Content Editor for Specific Page Template

To disable content editor on a specific page template, you can use this WordP...
Check if The Current User is The Post Author in WordPress

Check if The Current User is The Post Author in WordPress

This WordPress code snippet will allow you to check if the current user is th...
Display Upcoming Posts in WordPress Without a Plugin

Display Upcoming Posts in WordPress Without a Plugin

To display upcoming posts on your website sidebar, you can run a WP_Query to ...
Add Odd And Even Class to WordPress Posts

Add Odd And Even Class to WordPress Posts

To style alternative blog posts differently, you can use this WordPress code ...
Automatically Highlight First Paragraph of Post Content

Automatically Highlight First Paragraph of Post Content

Some websites highlight first paragraph of the article and style it different...
Get The Previous And Next Post Link URLs

Get The Previous And Next Post Link URLs

Sometimes you have requirement to get the link URLs of previous and next post...
Change The Post Excerpt Length in WordPress

Change The Post Excerpt Length in WordPress

Changing default value of post excerpt length in WordPress is fairly very eas...
Get Template File Being Used on Current Page

Get Template File Being Used on Current Page

If you want to get template file being used on current page then you can use ...
Ignore More Tag in Post Content

Ignore More Tag in Post Content

The WordPress more tag is only searched for posts on home page or front page....
Display Related Posts Without Plugin

Display Related Posts Without Plugin

You can display related posts without any plugin by using this snippet. You c...
Disable Comments in Old Blog Posts via PHP

Disable Comments in Old Blog Posts via PHP

It's common for spammers to target old posts have established traffic and goo...
Show The Latest Sticky Posts In WordPress

Show The Latest Sticky Posts In WordPress

This WordPress code snippet will show you how to display latest sticky posts ...