Custom Query Sticky Posts, can't get rid of byline entry-meta

Viewing 2 posts - 1 through 2 (of 2 total)
  • #22710
    net3431
    Participant

    I’m trying to work with this theme here: http://www.heartonthehill.com/

    After my “Call To Action” I have a Sticky Post Custom Query with weird zeroes after them instead of nice excerpts.

    I can’t get rid of byline entry-meta and nothing I do seems to alter it.

    Is there any way to have post excerpts there instead of useless zeroes?

    #22713
    Daniel Tara
    Keymaster

    Add this code to your child theme’s functions.php file:

    function enlightenment_child_custom_query_widget_hooks( $query_name ) {
        if( 'custom_query_widget_list' == $query_name ) {
            remove_action( 'enlightenment_custom_before_entry', 'enlightenment_custom_query_widget_add_meta' );
            remove_action( 'enlightenment_custom_entry_content', 'the_content' );
            remove_action( 'enlightenment_custom_before_entry', 'enlightenment_custom_query_widget_content_switcher' );
    
            add_action( 'enlightenment_custom_entry_content', 'the_excerpt' );
        }
    }
    add_action( 'enlightenment_before_custom_loop', 'enlightenment_child_custom_query_widget_hooks', 12 );
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.