Lego2012
12/13/2016 - 2:37 PM

How to check if a if Soliloquy slider is in published status

How to check if a if Soliloquy slider is in published status

<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

if ( function_exists( 'soliloquy' ) ) {
   $front_page_1 = get_page_by_path( "front-page-1", OBJECT, 'soliloquy' );
}

if ( $front_page_1->post_status == 'publish' ) {
   soliloquy( 'front-page-1', 'slug' );
}