Skip to content

Commit

Permalink
08-23-2024
Browse files Browse the repository at this point in the history
  • Loading branch information
midkiffaries committed Aug 23, 2024
1 parent a038a32 commit 0e6d891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ function get_child_pages( $id, $thumbnail ) {
// Specialized Functions
/////////////////////////////

// Shortcode implementation for displaying additional post types in the editor
// Shortcode implementation for displaying additional post types in the editor -- https://www.smashingmagazine.com/2012/05/wordpress-shortcodes-complete-guide/
// [list-posts posts="5" post_type="portfolio" order="asc" orderby="title" thumbnail="1" excerpt="1" post_status="publish" category="" id="" class=""]
add_shortcode('list-posts', function( $atts, $content = null ){
extract(shortcode_atts(['posts' => 1, 'post_type' => 'portfolio', 'order' => 'desc', 'orderby' => 'title', 'thumbnail' => 0, 'excerpt' => 0, 'post_status' => 'publish', 'category' => '', 'id' => '', 'class' => ''], $atts));
Expand Down

0 comments on commit 0e6d891

Please sign in to comment.