This WordPress snippet will let you show a list of post by a specific user. This is useful if you for example want to show post from a specific user on Custom Post Types etc.
How to output content based on WordPress meta fields - and use conditions (statements) based on wether or not the meta fields has data
This snippet will use WordPress built-in "mobile detect" function "wp_is_mobile" to create a simple shortcode that can hide certain parts of your content from mobile visitors and-/or desktop visitors.
Sometimes you need to display post-specific content using custom fields. In this example we will show you how you can display custom field data using conditional statements in the form of a youtube video embed. If the post has a "youtube-video-link" defined, the content will be rendered.
If you only wish to show content only on the WordPress front page, you can do so by wrapping the content in a is_page (is_front_page) conditional statement. You can also choose to display content on all pages BUT front page by adding “!” to your statement. Instructions Insert content as shown below. Related Links: …
Heres a snippet on how to hide the WordPress sidebar container elements such as UL - if the sidebar has no widget active..