WordPress.org

Plugin Directory

Changeset 1180006


Ignore:
Timestamp:
06/13/15 01:20:41 (2 years ago)
Author:
byronj
Message:

Added conditionals to ensure the added content does not show on blog feed pages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • easy-content-adder/trunk/includes/display-functions.php

    r1165421 r1180006  
    3131        } 
    3232     } 
     33 
     34     $page_conditionals = is_single() || is_page() || is_attachment(); 
    3335     
    3436    // display content if a post type is chosen and if the enable option is selected 
    35     if( in_array(get_post_type(), $selected_post_types) && $beca_options['enable'] == 1 ){ 
     37    if( in_array(get_post_type(), $selected_post_types) && $beca_options['enable'] == 1 && $page_conditionals  ){ 
    3638 
    3739        // display content at top or bottom of content....or both top and bottom 
Note: See TracChangeset for help on using the changeset viewer.