This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'jet-blog/smart-listing/query-args', 'my_smart_listing_args' ); | |
function my_smart_listing_args( $args ) { | |
$args['post_type'] = array( 'post', 'page' ); | |
return $args; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add callback function for date formatting into available callbacks list in control. | |
*/ | |
function my_update_meta_controls( $widget ) { | |
foreach ( array( 'title_related', 'content_related' ) as $position ) { | |
$control = $widget->get_controls( $position . '_meta' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'jet-blog/smart-listing/query-args', 'my_listing_query_args' ); | |
function my_listing_query_args( $args ) { | |
$args['meta_key'] = 'your_key'; // Set meta key to sort by | |
$args['orderby'] = 'meta_value'; | |
$args['order'] = 'DESC'; | |
$args['meta_type'] = 'DATE'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function my_smart_listing_classes( $classes ) { | |
global $post; | |
$terms = get_the_terms( $post->ID, 'category' ); | |
if ( ! empty( $terms ) ) { | |
foreach ( $terms as $term ) { | |
$classes[] = 'category-' . $term->slug; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Post item template | |
*/ | |
global $post; | |
$terms = get_the_terms( $post->ID, 'category' ); | |
$terms_classes = ''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'init', 'finscore_plugins_wizard_config', 9 ); | |
add_action( 'init', 'finscore_data_importer_config', 9 ); | |
/** | |
* Register Jet Plugins Wizards config | |
*/ | |
function finscore_plugins_wizard_config() { | |
if ( ! is_admin() ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.jet-posts__inner-box { | |
display: flex; | |
flex-direction: column; | |
} | |
.jet-posts__inner-box .post-thumbnail { | |
order: 2; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.jet-posts__inner-box { | |
display: flex; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Enqueue Fontawesome icon font into your website. | |
* Before adding this code, please ensure that you put Fontawesome CSS and webfont into fontawesome folder in your theme. | |
*/ | |
function jet_enqueue_icon_font() { | |
wp_enqueue_style( 'fontawesome5', get_theme_file_uri( 'fontawesome/css/fontawesome.min' ) ); | |
} | |
add_action( 'wp_enqueue_scripts', 'jet_enqueue_icon_font' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( | |
'elementor/element/jet-blog-smart-listing/section_custom_fields/before_section_end', | |
'jet_custom_meta_callbacks' | |
); | |
add_action( | |
'elementor/element/jet-blog-smart-tiles/section_custom_fields/before_section_end', | |
'jet_custom_meta_callbacks' |