Remove Meta Boxes from WordPress Admin
The following will remove meta boxes that you do not need from the Wordpress admin back end. To target a certain meta box find the boxes main div id using…
The following code will display the posts from a specific custom post type. <?php $options = array( 'post_type' => 'post_type_name', 'posts_per_page' => -1, 'orderby' => 'date', 'order' => 'ASC', 'paged'…
This is an if statement for ACF options page. Only show this content if the field exists
This will show the content enclosed in the if statement only if the custom field exists. Only show this content if the field exists Show if field exists Show if…
Here is a great website explaining how to setup an instagram feed into a website: http://instafeedjs.com/
To change the number of search results listed add the following snippet right above the if(have_posts) statement. So it would look like this:
The following snippet will limit search results to display blog posts only on your search results page. Copy and paste the following into functions.php function SearchFilter($query) { if ($query->is_search) {…