- NewsmagAbove footer ads
- NewsmagSmart list ads
- NewsmagArticle ads
- NewsmagSidebar ads
- NewsmagHeader ads
- NewspaperHeader ads
- NewspaperSidebar ads
- NewspaperArticle Ad
- NewspaperPost template ads
- NewspaperAbove footer ads
sorry, I’m working with the td_category_template_2.php and I want to place the ad shortcode after 6 articles but the code placed as they suggest is not working:
<?php
$postnum = 0;
while(have_posts()) : the_post();
if($postnum == 6) {
echo do_shortcode ('[td_block_ad_box spot_id="custom_ad_2"]');
$postnum = 0;
}
//view another category entry
$postnum++;
endwhile;
?>
Is not something that I have to display in article display view template td_module_5.php as I want to put the Ad after 6 posts?
Thanks
-
This reply was modified 8 years by
acdmin.
Hello,
I have this error message since I had updated to 8.7.1 version (when I visit the site with a connected user account) :
wp_booster error:
td_api_base::mark_used_on_page : a component with the ID: vc_column_text is not set.
/home/grandirautre/dev.grandirautre.odns.fr/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
Display backtrace
Array
(
[0] => Array
(
[file] => /home/grandirautre/dev.grandirautre.odns.fr/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
[line] => 337
[function] => error
[class] => td_util
[type] => ::
[args] => Array
(
[0] => /home/grandirautre/dev.grandirautre.odns.fr/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
[1] => td_api_base::mark_used_on_page : a component with the ID: vc_column_text is not set.
)
)
[1] => Array
(
[file] => /home/grandirautre/dev.grandirautre.odns.fr/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
[line] => 135
[function] => mark_used_on_page
[class] => td_api_base
[type] => ::
[args] => Array
(
[0] => vc_column_text
)
)
[2] => Array
(
[file] => /home/grandirautre/dev.grandirautre.odns.fr/wp-content/themes/Newspaper/includes/wp_booster/td_block.php
[line] => 40
[function] => get_by_id
[class] => td_api_base
[type] => ::
[args] => Array
(
[0] => vc_column_text
)
)
[3] => Array
(
[file] => /home/grandirautre/dev.grandirautre.odns.fr/wp-content/plugins/td-composer/includes/shortcodes/vc_column_text.php
[line] => 13
[function] => render
[class] => td_block
[object] => vc_column_text Object
(
[block_uid] =>
[td_query] =>
[td_block_template_data:protected] =>
[atts:td_block:private] => Array
(
[custom_title] =>
[block_template_id] =>
[tdc_css] => eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjAiLCJjb250ZW50LWgtYWxpZ24iOiJjb250ZW50LWhvcml6LWNlbnRlciIsImRpc3BsYXkiOiIifX0=
)
[td_block_template_instance:td_block:private] =>
[is_loop_block:td_block:private] => 1
)
[type] => ->
[args] => Array
(
[0] => Array
(
[custom_title] =>
[block_template_id] =>
[tdc_css] => eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjAiLCJjb250ZW50LWgtYWxpZ24iOiJjb250ZW50LWhvcml6LWNlbnRlciIsImRpc3BsYXkiOiIifX0=
)
)
)
[4] => Array
(
[file] => /home/grandirautre/dev.grandirautre.odns.fr/wp-content/themes/Newspaper/includes/wp_booster/td_global_blocks.php
[line] => 28
[function] => render
[class] => vc_column_text
[object] => vc_column_text Object
(
[block_uid] =>
[td_query] =>
[td_block_template_data:protected] =>
[atts:td_block:private] => Array
(
[custom_title] =>
[block_template_id] =>
[tdc_css] => eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjAiLCJjb250ZW50LWgtYWxpZ24iOiJjb250ZW50LWhvcml6LWNlbnRlciIsImRpc3BsYXkiOiIifX0=
)
[td_block_template_instance:td_block:private] =>
[is_loop_block:td_block:private] => 1
)
[type] => ->
[args] => Array
(
[0] => Array
(
[custom_title] =>
[block_template_id] =>
[tdc_css] => eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjAiLCJjb250ZW50LWgtYWxpZ24iOiJjb250ZW50LWhvcml6LWNlbnRlciIsImRpc3BsYXkiOiIifX0=
)
[1] =>
Abonnement
VERSION PAPIER
)
)
[5] => Array
(
[file] => /home/grandirautre/dev.grandirautre.odns.fr/wp-includes/shortcodes.php
[line] => 319
[function] => proxy_function
[class] => td_global_blocks
[type] => ::
[args] => Array
(
[0] => Array
(
[custom_title] =>
[block_template_id] =>
[tdc_css] => eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjAiLCJjb250ZW50LWgtYWxpZ24iOiJjb250ZW50LWhvcml6LWNlbnRlciIsImRpc3BsYXkiOiIifX0=
)
[1] =>
Abonnement
VERSION PAPIER
[2] => vc_column_text
)
)
[6] => Array
(
[function] => do_shortcode_tag
[args] => Array
(
[0] => Array
(
[0] => [vc_column_text custom_title="" block_template_id="" tdc_css="eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjAiLCJjb250ZW50LWgtYWxpZ24iOiJjb250ZW50LWhvcml6LWNlbnRlciIsImRpc3BsYXkiOiIifX0="]
Abonnement
VERSION PAPIER
[/vc_column_text]
[1] =>
[2] => vc_column_text
[3] => custom_title=”” block_template_id=”” tdc_css=”eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjAiLCJjb250ZW50LWgtYWxpZ24iOiJjb250ZW50LWhvcml6LWNlbnRlciIsImRpc3BsYXkiOiIifX0=”
[4] =>
[5] =>
Abonnement
VERSION PAPIER
[6] =>
)
)
)
)
Thank you for your response
Guillaume
Hello MrKeerthan,
Unfortunately, the theme does not have any such an option that allows you to insert any shortcode AMP version, sorry! If you want something like this, you should edit the AMP files from the theme core files and use the do_shortcode() method to add any shortcode you want on it and if you are not aware of the steps which are needed to take in this case, please consider hiring a freelancer/developer to help you because we cannot provide custom work at the moment, sorry! For more reference about this method, please check here -> https://developer.wordpress.org/reference/functions/do_shortcode/ Usually, we recommend the developers from studio.envato.com
Thanks for your understanding!
Hello ltonline,
Unfortunately, the category page cannot be changed with TD Composer, sorry! You should edit the theme core files and use the do_shortcode() method because this is the surest method in this case. As a hint, you should check the following topic from here -> https://forum.tagdiv.com/topic/per-category-leaderboard-ads/
Thanks for your understanding!
Hi,
I am trying to automatically insert the following short-code in an article each time I click on NEW ARTICLE.
<strong><?php echo do_shortcode('[gallery]'); ?></strong>
Which file should I be modifying ?
Thanks,
Ka Sangoyah
$td_module = td_api_module::get_by_id($td_module_class);
if ($td_module[‘uses_columns’] === false) {
$td_template_layout->disable_output();
}
if (have_posts()) {
while ( have_posts() ) : the_post();
echo $td_template_layout->layout_open_element();
if (class_exists($td_module_class)) {
$td_mod = new $td_module_class($post);
echo $td_mod->render();
} else {
td_util::error(__FILE__, ‘Missing module: ‘ . $td_module_class);
}
echo $td_template_layout->layout_close_element();
$td_template_layout->layout_next();
$adcounter++;
if (is_home()) {
if ($adcounter == 4 or $adcounter == 8) {
echo do_shortcode(‘[td_ad_box spot_id=”custom_ad_2″]’);
}
}
endwhile; //end loop
echo $td_template_layout->close_all_tags();
Hi,
In this example I use a do_shortcode to insert and ad below the comment (custom ad 1 spot for example), using the default post template (you can modify any post template you want)
<?php echo do_shortcode ('[td_block_ad_box spot_id="custom_ad_1"]'); ?>
To make it appear below the comments section it has to be entered here
– https://www.screencast.com/t/tt0b93Cb
– https://www.screencast.com/t/KEvwvy0rT0F
Note the sidebar cases and enter the code depending on layout used. Hope this helps.
Thanks
Hi i have problem. after update in main page show me this error.
wp_booster error:
td_api_base::mark_used_on_page : a component with the ID: vc_column_text is not set.
/home/muhendisbeyinler/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
Array
(
[0] => Array
(
[file] => /home/muhendisbeyinler/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
[line] => 337
[function] => error
[class] => td_util
[type] => ::
[args] => Array
(
[0] => /home/muhendisbeyinler/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
[1] => td_api_base::mark_used_on_page : a component with the ID: vc_column_text is not set.
)
)
[1] => Array
(
[file] => /home/muhendisbeyinler/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
[line] => 135
[function] => mark_used_on_page
[class] => td_api_base
[type] => ::
[args] => Array
(
[0] => vc_column_text
)
)
[2] => Array
(
[file] => /home/muhendisbeyinler/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_block.php
[line] => 40
[function] => get_by_id
[class] => td_api_base
[type] => ::
[args] => Array
(
[0] => vc_column_text
)
)
[3] => Array
(
[file] => /home/muhendisbeyinler/public_html/wp-content/plugins/td-composer/includes/shortcodes/vc_column_text.php
[line] => 13
[function] => render
[class] => td_block
[object] => vc_column_text Object
(
[block_uid] =>
[td_query] =>
[td_block_template_data:protected] =>
[atts:td_block:private] => Array
(
[custom_title] =>
[tdc_css] => eyJhbGwiOnsibWFyZ2luLXRvcCI6IjAiLCJtYXJnaW4tYm90dG9tIjoiMCIsImJvcmRlci10b3Atd2lkdGgiOiIwIiwiYm9yZGVyLWJvdHRvbS13aWR0aCI6IjAiLCJwYWRkaW5nLXRvcCI6IjAiLCJwYWRkaW5nLWJvdHRvbSI6IjAiLCJiYWNrZ3JvdW5kLXN0eWxlIjoibm8tcmVwZWF0IiwiYmFja2dyb3VuZC1wb3NpdGlvbiI6ImNlbnRlciBjZW50ZXIifX0=
)
[td_block_template_instance:td_block:private] =>
[is_loop_block:td_block:private] => 1
)
[type] => ->
[args] => Array
(
[0] => Array
(
[custom_title] =>
[tdc_css] => eyJhbGwiOnsibWFyZ2luLXRvcCI6IjAiLCJtYXJnaW4tYm90dG9tIjoiMCIsImJvcmRlci10b3Atd2lkdGgiOiIwIiwiYm9yZGVyLWJvdHRvbS13aWR0aCI6IjAiLCJwYWRkaW5nLXRvcCI6IjAiLCJwYWRkaW5nLWJvdHRvbSI6IjAiLCJiYWNrZ3JvdW5kLXN0eWxlIjoibm8tcmVwZWF0IiwiYmFja2dyb3VuZC1wb3NpdGlvbiI6ImNlbnRlciBjZW50ZXIifX0=
)
)
)
[4] => Array
(
[file] => /home/muhendisbeyinler/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_global_blocks.php
[line] => 28
[function] => render
[class] => vc_column_text
[object] => vc_column_text Object
(
[block_uid] =>
[td_query] =>
[td_block_template_data:protected] =>
[atts:td_block:private] => Array
(
[custom_title] =>
[tdc_css] => eyJhbGwiOnsibWFyZ2luLXRvcCI6IjAiLCJtYXJnaW4tYm90dG9tIjoiMCIsImJvcmRlci10b3Atd2lkdGgiOiIwIiwiYm9yZGVyLWJvdHRvbS13aWR0aCI6IjAiLCJwYWRkaW5nLXRvcCI6IjAiLCJwYWRkaW5nLWJvdHRvbSI6IjAiLCJiYWNrZ3JvdW5kLXN0eWxlIjoibm8tcmVwZWF0IiwiYmFja2dyb3VuZC1wb3NpdGlvbiI6ImNlbnRlciBjZW50ZXIifX0=
)
[td_block_template_instance:td_block:private] =>
[is_loop_block:td_block:private] => 1
)
[type] => ->
[args] => Array
(
[0] => Array
(
[custom_title] =>
[tdc_css] => eyJhbGwiOnsibWFyZ2luLXRvcCI6IjAiLCJtYXJnaW4tYm90dG9tIjoiMCIsImJvcmRlci10b3Atd2lkdGgiOiIwIiwiYm9yZGVyLWJvdHRvbS13aWR0aCI6IjAiLCJwYWRkaW5nLXRvcCI6IjAiLCJwYWRkaW5nLWJvdHRvbSI6IjAiLCJiYWNrZ3JvdW5kLXN0eWxlIjoibm8tcmVwZWF0IiwiYmFja2dyb3VuZC1wb3NpdGlvbiI6ImNlbnRlciBjZW50ZXIifX0=
)
[1] =>
koseni-sec-yazar-ol
)
)
[5] => Array
(
[file] => /home/muhendisbeyinler/public_html/wp-includes/shortcodes.php
[line] => 319
[function] => proxy_function
[class] => td_global_blocks
[type] => ::
[args] => Array
(
[0] => Array
(
[custom_title] =>
[tdc_css] => eyJhbGwiOnsibWFyZ2luLXRvcCI6IjAiLCJtYXJnaW4tYm90dG9tIjoiMCIsImJvcmRlci10b3Atd2lkdGgiOiIwIiwiYm9yZGVyLWJvdHRvbS13aWR0aCI6IjAiLCJwYWRkaW5nLXRvcCI6IjAiLCJwYWRkaW5nLWJvdHRvbSI6IjAiLCJiYWNrZ3JvdW5kLXN0eWxlIjoibm8tcmVwZWF0IiwiYmFja2dyb3VuZC1wb3NpdGlvbiI6ImNlbnRlciBjZW50ZXIifX0=
)
[1] =>
koseni-sec-yazar-ol
[2] => vc_column_text
)
)
[6] => Array
(
[function] => do_shortcode_tag
[args] => Array
(
[0] => Array
(
[0] => [vc_column_text custom_title="" tdc_css="eyJhbGwiOnsibWFyZ2luLXRvcCI6IjAiLCJtYXJnaW4tYm90dG9tIjoiMCIsImJvcmRlci10b3Atd2lkdGgiOiIwIiwiYm9yZGVyLWJvdHRvbS13aWR0aCI6IjAiLCJwYWRkaW5nLXRvcCI6IjAiLCJwYWRkaW5nLWJvdHRvbSI6IjAiLCJiYWNrZ3JvdW5kLXN0eWxlIjoibm8tcmVwZWF0IiwiYmFja2dyb3VuZC1wb3NpdGlvbiI6ImNlbnRlciBjZW50ZXIifX0="]
koseni-sec-yazar-ol
[/vc_column_text]
[1] =>
[2] => vc_column_text
[3] => custom_title="" tdc_css="eyJhbGwiOnsibWFyZ2luLXRvcCI6IjAiLCJtYXJnaW4tYm90dG9tIjoiMCIsImJvcmRlci10b3Atd2lkdGgiOiIwIiwiYm9yZGVyLWJvdHRvbS13aWR0aCI6IjAiLCJwYWRkaW5nLXRvcCI6IjAiLCJwYWRkaW5nLWJvdHRvbSI6IjAiLCJiYWNrZ3JvdW5kLXN0eWxlIjoibm8tcmVwZWF0IiwiYmFja2dyb3VuZC1wb3NpdGlvbiI6ImNlbnRlciBjZW50ZXIifX0="
[4] =>
[5] =>
koseni-sec-yazar-ol
[6] =>
)
)
)
)
hi, I have all the plugins disabled (I use a copy in staging) I can see the site but not the admin part and “edit with TD Composer”. if I delete the plugin via ftp, I can enter admin
if I install the plugin from the theme, I get this error (all plugins disabled, no cdn)
Fatal error: Uncaught Error: Call to undefined method vc_row::set_font_settings() in /home/webhos13/staging/1/wp-content/plugins/td-composer/includes/tdc_composer_block.php:36 Stack trace: #0 /home/webhos13/staging/1/wp-content/plugins/td-composer/includes/shortcodes/vc_row.php(85): tdc_composer_block->render(Array) #1 /home/webhos13/staging/1/wp-content/themes/Newspaper/includes/wp_booster/td_global_blocks.php(28): vc_row->render(Array, ‘[vc_column widt…’) #2 /home/webhos13/staging/1/wp-includes/shortcodes.php(319): td_global_blocks::proxy_function(”, ‘[vc_column widt…’, ‘vc_row’) #3 [internal function]: do_shortcode_tag(Array) #4 /home/webhos13/staging/1/wp-includes/shortcodes.php(197): preg_replace_callback(‘/\\[(\\[?)(vc_row…’, ‘do_shortcode_ta…’, ‘[vc_row][vc_col…’) #5 /home/webhos13/staging/1/wp-includes/class-wp-hook.php(286): do_shortcode(‘[vc_row][vc_col…’) #6 /home/webhos13/staging/1/wp-includes/plugin.php(203): WP_Hook->apply_filters(‘[vc_row][vc_col…’, Array) #7 /home/webhos13/staging/1/wp-inclu in /home/webhos13/staging/1/wp-content/plugins/td-composer/includes/tdc_composer_block.php on line 36
-
This reply was modified 8 years by
Rodolfo.
Hello Carly,
You should edit the theme core files and add the do_shortcode method if you want to add some ads. Please refer to the following topic from here -> https://forum.tagdiv.com/topic/how-can-i-put-ads-between-post-title-and-social-share-button/
Thanks for the message!
Hello Finland,
Please refer to the following topic from here -> https://forum.tagdiv.com/topic/how-to-add-banner-on-top-of-date-and-socil-media-icon/ and add the do_shortcode after the related_posts() like this -> https://www.screencast.com/t/W39dDVxIZ according to your post template used by you.
Thanks for your understanding!
Fatal error: Uncaught Error: Call to undefined method vc_row::set_font_settings() in /home/pigsflyi/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php:36 Stack trace: #0 /home/pigsflyi/public_html/wp-content/plugins/td-composer/includes/shortcodes/vc_row.php(85): tdc_composer_block->render(Array) #1 /home/pigsflyi/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_global_blocks.php(28): vc_row->render(Array, ‘[vc_column type…’) #2 /home/pigsflyi/public_html/wp-includes/shortcodes.php(319): td_global_blocks::proxy_function(”, ‘[vc_column type…’, ‘vc_row’) #3 [internal function]: do_shortcode_tag(Array) #4 /home/pigsflyi/public_html/wp-includes/shortcodes.php(197): preg_replace_callback(‘/\\[(\\[?)(vc_row…’, ‘do_shortcode_ta…’, ‘[vc_row][vc_col…’) #5 /home/pigsflyi/public_html/wp-includes/class-wp-hook.php(286): do_shortcode(‘[vc_row][vc_col…’) #6 /home/pigsflyi/public_html/wp-includes/plugin.php(203): WP_Hook->apply_filters(‘[vc_row][vc_col…’, Array) #7 /home/pigsflyi/publ in /home/pigsflyi/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php on line 36
Setting (‘WP_DEBUG’, true); on wp-config.php file i get:
Fatal error: Uncaught Error: Call to undefined method vc_row::set_font_settings() in /var/www/html/a-c-d.net/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php:36 Stack trace: #0 /var/www/html/a-c-d.net/public_html/wp-content/plugins/td-composer/includes/shortcodes/vc_row.php(85): tdc_composer_block->render(Array) #1 /var/www/html/a-c-d.net/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_global_blocks.php(28): vc_row->render(Array, ‘[vc_column widt…’) #2 /var/www/html/a-c-d.net/public_html/wp-includes/shortcodes.php(319): td_global_blocks::proxy_function(”, ‘[vc_column widt…’, ‘vc_row’) #3 [internal function]: do_shortcode_tag(Array) #4 /var/www/html/a-c-d.net/public_html/wp-includes/shortcodes.php(197): preg_replace_callback(‘/\\[(\\[?)(vc_row…’, ‘do_shortcode_ta…’, ‘[vc_row][vc_col…’) #5 /var/www/html/a-c-d.net/public_html/wp-includes/class-wp-hook.php(286): do_shortcode(‘[vc_row][vc_col…’) #6 /var/www/html/a-c-d.net/public_html/wp-includes/plugin.php(203): WP_Hook->ap in /var/www/html/a-c-d.net/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php on line 36
Reinstalled theme from scratch:
Issue is now is this:
[14-Feb-2018 16:05:23 Europe/Vilnius] PHP Fatal error: Uncaught Error: Call to undefined function mb_detect_encoding() in /home/xxa/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_css_res_compiler.php:54
Stack trace:
#0 /home/xxa/public_html/wp-content/themes/Newspaper/includes/shortcodes/td_block_big_grid_3.php(68): td_css_res_compiler->load_settings('td_block_big_gr...', Array)
#1 /home/xxa/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_block.php(222): td_block_big_grid_3->get_custom_css()
#2 /home/xxa/public_html/wp-content/themes/Newspaper/includes/shortcodes/td_block_big_grid_3.php(96): td_block->get_block_css()
#3 /home/xxa/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_global_blocks.php(28): td_block_big_grid_3->render(Array, '')
#4 /home/xxa/public_html/wp-includes/shortcodes.php(319): td_global_blocks::proxy_function(Array, '', 'td_block_big_gr...')
#5 [internal function]: do_shortcode_tag(Array)
#6 /home/xxa/public_html/wp-includes/shortcodes.php(197): preg_replace_callback('/\\[(\\[?)( in /home/xxa/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_css_res_compiler.php on line 54
Hello, today there was an update for Newspaper and since then my site is not working anymore. There comes this message.
What can you do?
Fatal error: Uncaught Error: Call to undefined method vc_row :: set_font_settings () in /www/htdocs/w012cc9b/motorsport-pics.de.de/wp-content/plugins/td-composer/includes/tdc_composer_block.php:36 Stack trace: # 0 /www/htdocs/w012cc9b/motorsport-pics.de.de/wp-content/plugins/td-composer/includes/shortcodes/vc_row.php(85): tdc_composer_block-> render (Array) # 1 / www / htdocs / w012cc9b / motorsport-pics.de / wp-content / themes / Newspaper / includes / wp_booster / td_global_blocks.php (28): vc_row-> render (Array, ‘[vc_column] [td _…’ ) # 2 /www/htdocs/w012cc9b/motorsport-pics.de.de/wp-includes/shortcodes.php(319): td_global_blocks :: proxy_function (”, ‘[vc_column] [td _…’, ‘vc_row ‘) # 3 [internal function]: do_shortcode_tag (Array) # 4 /www/htdocs/w012cc9b/motorsport-pics.de.de/wp-includes/shortcodes.php(197): preg_replace_callback (‘ / \\ [(\ \ [?] (captio … ‘,’ do_shortcode_ta … ‘,’ [vc_row] [vc_col … ‘) # 5 /www/htdocs/w012cc9b/motorsport-pics.de.de/wp-includes/ class-wp-hook.php (286): do_shortcode (‘[vc_row] [vc_col …’) # 6 / www / htdocs / w012cc9b / motorsport-pi in /www/htdocs/w012cc9b/motorsport-pics.de.de/wp-content/plugins/td-composer/includes/tdc_composer_block.php on line 36
Hi,
I have tested this as well, caption shortcodes don’t seem to be working in the category or tag descriptions. I fixed it with this code in functions.php file
add_filter( 'post_tag_description', 'do_shortcode' );
– https://www.screencast.com/t/eFnqpPhr
– https://www.screencast.com/t/NcnerK3XN7
Thanks
Hello Catalin,
Thank you for the information. Now I have found the problem and the solution!
Yoast SEO makes the tag and category description editors to WYSIWYG-editors. So I thought I can also add shortcodes, but by default the shortcodes are not available.
I had to add this code to functions.php
add_filter( 'post_tag_description', 'do_shortcode' );
Now it works!
Hello ANM,
Please notice that our composer cannot be used for post pages, but only for pages. So, if you want to add the Call to action from each post pages without the author box, notice that you should do this from the code using the <?php echo do_shortcode ('your code here'); ?> method because another way of doing this does not exist, sorry! The code should have to be added to quotation mark should have to be taken from here -> https://www.screencast.com/t/qKWeLfGg -> https://www.screencast.com/t/DyEb0gJ9IYh -> https://www.screencast.com/t/tW8Vja2vx (example for post template style 1) and the result is here -> https://www.screencast.com/t/TOeFVx01Ob.
Thanks for the message!
Hello jb,
Unfortunately, the theme has not been tested with the Shortcodes Ultimate plugin and we have no idea if the theme will work or not with it, sorry! If you want to add some shortcodes you should use the do_shortcode() method and add the code directly in PHP files. So, if you are not aware of the steps which are needed to take in this case, please consider hiring a freelancer/developer to help you because we cannot provide custom work at the moment, sorry!
Thanks for the message!
Hello themesic,
Unfortunately, the theme does not have any such an option that allows you to add such a different ad per each category, sorry! You should edit the category templates, according to your category template used by you, adding the shortcode of your ads using the do_shortcode() method and before this, you will have to check what kind of category type you have to target it, using the is_category() function. Notice that is not a simple task and if you are not aware of the steps which are needed to take in this case, please consider hiring a freelancer/developer to help you because we cannot provide custom services at the moment, sorry!
Also, as a hint and for more information about this case, please consult the following topic from here -> https://forum.tagdiv.com/topic/ads-on-category-pages/ because there was explained how you could add that thing. For more information about the is_category(categroy_ID) function, please consult here -> https://developer.wordpress.org/reference/functions/is_category/
Hope this helps!
Thanks for your understanding!
Thanks Simion, I found your links are very helpful. I did managed to arrange them under the forget password link.
Here are my codes for people using “Open Social” plugin via shortcode:
Line 41<input type="button" name="login_button" id="login_button" class="wpb_button btn td-login-button" style="position:relative; bottom:25px;" value="' . __td('Login', TD_THEME_NAME) . '">
Line 42<div class="td-login-info-text" style="position:relative; bottom:25px;">' . __td('Forgot your password? Get help', TD_THEME_NAME) . ''.do_shortcode('[os_login show="sina"]').'</div> <div style="position:relative; bottom:45px;">' .
Line 43$users_can_register_link . '</div>
I did managed to arrange the position of register button a little bit so it will show at the right place.
Thanks for the quick support response again,
Eric Qian
Hello Ryansmccain,
The best way, in this case, is to edit the theme core file according to your post templates used by you and with do_shortcode method you should add your desired text on the bottom of your articles. As a hint, if you are using the post template style 1, you should edit the loop-single-1.php and add the code to your desired text at the bottom of the page, like this -> https://www.screencast.com/t/jJz3psh7
For more information about how you should create your shortcode, please check the following topic from here -> https://forum.tagdiv.com/topic/box-custom-htlm/
Thanks for your understanding!
Hello howtoisolve,
You should edit the theme core files where the mobile plugin is created and use the do_shortcode for your ads. Notice that is not a simple task and if you are not aware of the steps which are needed to take in this case, please consider hiring a freelancer/developer to help you because we cannot provide custom work at the moment, sorry! As a hint, you should edit the mobile folder from theme and loop.php file according to the following example for a normal desktop version from here -> https://forum.tagdiv.com/topic/how-to-add-banner-on-top-of-date-and-socil-media-icon/
Hope this helps!
Thanks for your understanding!
hello!
After updating plagin the main page is doesn’t work
Only show this message
Fatal error: Uncaught Error: Class ‘»»’ not found in /home/micetv5/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_block.php:185 Stack trace: #0 /home/micetv5/public_html/wp-content/plugins/td-composer/includes/shortcodes/vc_column_text.php(13): td_block->render(Array) #1 /home/micetv5/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_global_blocks.php(28): vc_column_text->render(Array, ‘«]’) #2 /home/micetv5/public_html/wp-includes/shortcodes.php(319): td_global_blocks::proxy_function(Array, ‘«]’, ‘vc_column_text’) #3 [internal function]: do_shortcode_tag(Array) #4 /home/micetv5/public_html/wp-includes/shortcodes.php(197): preg_replace_callback(‘/\\[(\\[?)(adrota…’, ‘do_shortcode_ta…’, ‘[vc_column_text…’) #5 /home/micetv5/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php(176): do_shortcode(‘[vc_column_text…’) #6 /home/micetv5/public_html/wp-content/plugins/td-composer/includes/shortcodes/vc_column.php(56): tdc_composer_block->do_shortcode(‘[ in /home/micetv5/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_block.php on line 185
Hi,
So you would like tot display a text below the author box in the post page, in the same style of the block headers. There would be a method to do that. It will require you to enter it directly in the post template file used.
Each post template has a corresponding loo-single file (Ex. post template 2->loop-single-2).
Edit the post template you want to do this for, in this example I use post template 2, this is a do_shortcode that is needed
<?php echo do_shortcode ('your code here'); ?>
Set a title element on a page and configure it as you wish
– https://www.screencast.com/t/oWqjw6Lyiudx
– https://www.screencast.com/t/hE3oDFGAD
Then enter it in the post template file (below the author box if that is where you want to show it)
– https://www.screencast.com/t/NNjdPeby
– https://www.screencast.com/t/nfhhnD7HS
– https://www.screencast.com/t/qvUaeoULH8J
The result – https://www.screencast.com/t/2bVAD95pN5
Thanks