Search
Exact matches only
Search in title
Search in content
Search in comments
Search in excerpt
Filter by Custom Post Type
Recent SnippetsMore

How to display content for mobile- or desktop only using WordPress “wp_is_mobile”.

Did you know that you can use WordPress built-in “mobile detect” function wp_is_mobile to create a simple shortcode that...

How to display WordPress “site name” and “description” in templates

To display the Wordpress site(blog) name and description - you can add the following to your template.

How to Disable the WordPress JSON REST API without plugin

The WordPress JSON REST API can be useful for developers building apps using WordPress. Other site owners may find...

How to get featured image source (src)

With the WordPress function: wp_get_attachment_image_src, you can get the src of the featured image. Instructions Add this code to...

How to show author bio excerpt in posts

Here is a snippet that will enable you to show a short intro (excerpt) of the author bio of...

How to display custom fields with conditional statements

Sometimes you need to display post-specific content using custom fields. In this example we will show you how you...