Created
August 3, 2020 18:27
-
-
Save wpexplorer/68268b59cc4e840861a4802ac1ec380f to your computer and use it in GitHub Desktop.
Sample card function wip
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
add_action( 'wpex_hook_content_top', function() { | |
echo '<div class="entry wpex-mb-25" style="font-size:16px;">'; | |
wpex_card( 'list-1', array( | |
'title' => 'This is a custom title', | |
'excerpt' => 'This is a custom excerpt', | |
'image' => 'http://localhost/total/wp-content/uploads/sites/5/2019/05/us-air-force-77909-150x150.jpg', | |
) ); | |
echo '</div>'; | |
set_query_var( 'wpex_loop', 1 ); | |
echo '<div class="entry wpex-mb-25">'; | |
wpex_card( 'list-1', array( | |
'excerpt_length' => 60, | |
) ); | |
echo '</div>'; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment