Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Allow Shortcode is Page Titles

Home / Forums / Virtue Theme / Allow Shortcode is Page Titles

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
January 1, 2014 at 11:26 am

This is way outside the scope of your support and I am very happy to send you a payment for your time!

I’m using you theme for a musician

He has posts with lyrics…
In the title of posts I’d like to allow do-shortcode function (if is possible without killing the seo titles)

Something like: <?php echo do_shortcode(); ?>

The short code will contain a single play button for the audio to that post and an example of this shortcode is:
[sc_embed_player fileurl="http://162.243.147.225/downloads/music/bk/Go-Fly-A-Kite/mp3/Jealous-Girl.mp3"%5D
This will render that single button audio player most everywhere that allows content

So really in short is this possible maybe in a location like
/templates/page-header.php

<div class="page-header">
<h1>
<?php echo kadence_title(); ?>
<?php if(kadence_display_page_breadcrumbs()) { kadence_breadcrumbs(); } ?>
</h1>
<?php global $post;
if(is_page()) {$bsub = get_post_meta( $post->ID, '_kad_subtitle', true ); if($bsub != '') echo '<p class="subtitle"> '.$bsub.' </p>'; }
else if(is_category()) { echo '<p class="subtitle">'.category_description().' </p>';}
?>
</div>

I’m not sure where the best place is to drop do_shortcodefunction into the theme
REF:

If you look at:
pass is: nx

yuo could imagine a single play button right to the left of the title like:
but instead of next to: “Single song download in MP3 format” it would be in the title?

  • The forum ‘Virtue Theme’ is closed to new topics and replies.