If you have a look at how [dj-widget]
shortcode is handled you will get an idea of how to implement plugin authors’ idea of showing post description.
if($show_desc) {
$desc_string = station_shorten_string(strip_tags($show->post_content), 20);
$output .= '<span class="on-air-show-desc">'.$desc_string.'</span>';
}
insert this between $output .= '<li>...'
and $output .= '</li>';
Please NOTE: There might be a better way to show actual post excerpt instead trying to generate one based on post content. More here.
Related Posts:
- the_excerpt and shortcodes
- Stop strip_shortcodes() stripping content inside shortcodes
- Shortcode content does not show in feed discription/excerpt
- Easy way to show excerpts of specific posts on a page
- Shortcodes in excerpts returning empty string
- Retrieving post excerpt as a shortcode
- Shortcodes in RSS excerpts
- shortcode issue in the_excerpt
- How to Get Shortcode in Excerpt to follow Document Flow
- Excerpt Length & List Category Posts Plugin
- Shortcode not displaying video as expected
- shortcode doesnt work on excerpt
- Remove figcation from excerpt
- the_excerpt displaying code inside style tag
- How to strip header tags & shortcodes from the_excerpt()
- Running Filter or Shortcode Before Query Prevents Excerpt from Showing
- How to stop unwanted splits in excerpts when using shortcodes for sliders or players
- Inserting shortcode is blanking excerpt – any ideas?
- Wpautop stops working after get_the_excerpt
- How to create a shortcode with 1 parameter (atts)
- shortcodes output before content [duplicate]
- WordPress adds br in between my shortcode
- WP_enqueue_script inside shortcode?
- Shortcode to Gutenberg-block: additional text on front-end and conditional display
- How navigation works in custom loop within shortcode?
- How do I preview the result of a shortcode in the TinyMCE editor?
- WordPress shortcode doesn’t working on HomePage
- Add attribute to shortcode dynamically
- Execute shortcode twice in the same page
- How to parse this shortcode?
- Add custom setting that uses radio button to WP Gallery
- Shortcode with hyphen doesn’t work
- Shortcode parsed incorrectly because of heredoc
- Shortcode “post_per_page” not working
- Shortcode is running in page editor
- Creating shortcode with parameter
- Shortcodes won’t work on live environment
- Create shortcode in Child Theme?
- Get post object in shortcode function
- How to insert image and text from admin panel throughout my theme
- Create a short code to display a specific loop
- How to add shortcode to HTML file (not showing on website)
- Custom Shortcode: define cursor position/insertion point?
- Buddypress shortcode for tabs [closed]
- show shortcodes in editor
- Image Shortcode from ACF ID
- Page code showing in WP Dashboard
- echo do_shortcode just prints the shortcode name and not its content
- How to create a shortcode with html and php code
- PHP Running On CMS Side of WordPress
- Insert shortcode between ”
- do_shortcode doesn’t work on some pages
- Custom youtube shortcode that uses $content
- How to build dynamic pages?
- When are Shortcode Attributes Available in Template
- How to reload the shortcode content when the database is changing
- Regenerating WordPress shortcodes based on value with AJAX
- Custom shortcode to display posts, first post is full
- Form shortcode with multiple options as attributes
- How to add data attributes to the wordpress audio shortcode
- Beginner’s question about shortcodes
- How to create a dropdown of shortcodes in edit mode for posts
- Multiple instances of the shortcode on the same page
- get data with shortcode
- Replace shortcode with output in database?
- Wrap php in shortcode
- Iteratively add sub shortcodes to php array
- Show shortcode only in posts
- How to execute a shortcode?
- Shortcode, Concatenating & Parse error: syntax error, unexpected T_FOREACH
- Getting Shortcode Attributes befor content is displayed by the template
- How to remove double quotes in a shortcode?
- Shortcode to appear and show the date not code in Title and description of my website
- Colon is Missing In My Website Url in WordPress Shortcode
- Shortcode not working inside div html
- How to test If a post has a particular term
- Multiple shortcodes with embedded JavaScript code in same page, how?
- Contact Form 7 shortcode is commented out, but I receive spam emails from it
- How can I disable(remove) wpautop (wptexturize, convert_chars) for specific shortcodes only?
- How to load specific template page in a custom shortcode
- WordPress keeps automatically inserts
- shortcode is not rendered
- Contact form code not working. Need help!
- How to make shortcode enabled in JSON Feeds?
- Automatically add class-attribute to gallery?
- Shortcode works from functions.php but not from included file
- Shortcode tags appear on mobile themes
- WordPress Gallery with ID’s Shortcode not Working
- Featured image with link to post shortcode, image displaying above the post
- Video shortcode inside tabs shorcode NOT working
- How to add meta slider lite or other slider to main page header in pinboard theme
- Str_replace using shortcode with multiple changes
- Escaping a shortcode so it displays as-is [duplicate]
- WordPress do_shortcode first iteration
- Add a short code to a plugin
- Applying if (get_post_meta) to new shortcode
- Add widget/shortcode to sidebar OUTSIDE of the theme
- How to remove https:// from shortcode generated url
- I have the query code but not the shortcode
- wordpress how to sort posts on custom data with plug-in “Search & Filter”