I would like to add certain shortcode elements to my author box.
i found the text to be within a class “td-author-description”
which I only found in the loop-single.php
when I edit loop-single.php to show an extra header2 “test-header” and then do_shortcode I do not get any result. All Caching plugins are removed, I re-read the page with Ctrl-F5 and dont take it from browser-cache as well as I tried it with mobile & ipad. How would you suggest I can add shortcodes to author-box
<div class="td-author-description"><h2>test-header</h2>
<?php echo esc_html(do_shortcode("xxx" . get_the_author_meta('description', $author_id))) ?>
</div>
Hi,
The author box inside the article need to be edited (for standard post styles) in this file -> wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php -> https://i.imgur.com/0vuZ0T2.png if you are using single post template from tagDiv Cloud Library, then you can edit these elements using tagDiv Composer.
Hope this will help you!
Thank you!
tx a lot, very very helpful! Now I know why searching for the class-describers didn’t find the right function file, you have a tremendous amount of functionality in the plugins! Sneaky !!!
just for s.o. else who also wants to have shortcodes in Author part:
1052 line-Number
$buffy .= ‘<div class=”td-author-description”>’;
$buffy .= do_shortcode(get_the_author_meta(‘description’, $author_id));
$buffy .= ‘</div>’;
-
Update for newspaper 11 – Shortcodes in AUTHOR-Box
…. plugins/td-cloud-libary/shortcodes/single/tdb_single_author_box.php
edit almost last line 576
return do_shortcode($buffy);
then the same on td-cloud-libary/shortcodes/author/tdb_author_box.php or author_description (I changed both)
-
Here the HOW TO USE ShortCodes for COMMENTS
to keep website neat and clean I want to toggle (accordion) the comments.
so edit file:
/clickandbuilds/Ganzemedizin/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_comments.php
almost last line where $buffy is returned and change it to
return do_shortcode('[toggle title=" view comments or write a comment "]' . $buffy . '[/toggle]');
-
This reply was modified 4 years by
HeliR.
for Mobile Theme change
/clickandbuilds/Ganzemedizin/wp-content/plugins/td-composer/legacy/common/wp_booster/td_module_single_base.php
line 1096
$buffy .= '<div class="td-author-description">';
$buffy .= do_shortcode(get_the_author_meta('description', $author_id));
$buffy .= '</div>';