Only Show if User is Logged in
The following snippet can be used to show content only to users who are currently logged in. if ( is_user_logged_in() ) {?> This will be shown to logged in users…
The following snippet can be used to show content only to users who are currently logged in. if ( is_user_logged_in() ) {?> This will be shown to logged in users…
The following snippet will allow you to show content only if a comment exists for the current post or page. //Comments do not exist // Comments Exist
Here is how to limit the post title length. Replace your post title with the snippet above.
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