No search results were found in Documentation!
OK but there must be a shortcode to put in functions.php to enable WPBakery in categories…
On another theme it was something like “add_filter( ‘term_description’, ‘do_shortcode’ );”
Please… I need to add tabbed content in categories !!
Hi Simion,
Good news, I was able to resolve this with the plugin developer last night. I’d like to share the solution here (in case someone else has similar issue with this plugin) and get your feedback whether this solution will impact anything else on the site.
First to answer your questions, the plugin (Job Board Manager) creates a post for each job. So adding a job is similar to adding a post but with custom fields.
The solution was to comment out line 75 and 76 in the td-composer/legacy/newspaper/footer.php file via the plugin editor and add the following two lines in its place (thank you Nur from Job Board Manager).
$post_content = do_shortcode($footer_page->post_content);
$content = str_replace( ']]>', ']]>', $post_content );
Please let me know if you think this will cause any issues elsewhere – so far the site is working great.
Shaun
Good morning,
I installed your theme in my wordpress, the homepage doesn´t work correctly, only loads the main menu.
The error that appears is the following.
[Thu Oct 24 11:21:55.862241 2019] [proxy_fcgi:error] [pid 29572] [client 2.136.55.50:51329] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to undefined function aq_resize() in /usr/home/zbitt/blog/wp-content/plugins/js_composer/include/classes/shortcodes/home_carousel_posts.php:237\nStack trace:\n#0 /usr/home/zbitt/blog/wp-content/plugins/js_composer/include/classes/shortcodes/shortcodes.php(565): WPBakeryShortCode_VC_Home_carousel_posts->content(Array, ”)\n#1 /usr/home/zbitt/blog/wp-content/plugins/js_composer/include/helpers/helpers.php(1378): WPBakeryShortCode->output(Array, ”)\n#2 /usr/home/zbitt/blog/wp-includes/shortcodes.php(319): vc_do_shortcode(Array, ”, ‘vc_home_carouse…’)\n#3 [internal function]: do_shortcode_tag(Array)\n#4 /usr/home/zbitt/blog/wp-includes/shortcodes.php(197): preg_replace_callback(‘/\\\\[(\\\\[?)(vc_hom…’, ‘do_shortcode_ta…’, ‘[vc_home_carous…’)\n#5 /usr/home/zbitt/blog/wp-content/plugins/td-composer/includes/tdc_composer_block.php(198): do_shortcode(‘[vc_home_carous…’)\n#6 /usr/home/zbitt/blog/wp-content/plugins/td-composer/includes/shortcodes/vc_column.php(11…\n’, referer: http://blog.zbitt.com/wp-admin/admin.php?page=td_cake_panel
I hope your answer
Christian
I know where the loop.php is located, I am wanting to know where in loop.php I should input this code
$adcounter++;
if (is_category()) {
if ($adcounter == 2) {
echo do_shortcode(‘[td_block_ad_box spot_id="custom_ad_1"]‘);
}
elseif($adcounter == 4){
echo do_shortcode(‘[td_block_ad_box spot_id="custom_ad_2"]‘);
}
}
That was mentioned by Catalin back in 2017 since the format of loop.php has changed so much since then.
Thanks
Hi,
We have developed our own plugin called “MY READING LIST” & ” My Archive” . Using this plugin, Subscribed USERS can Add/remove ( kind of book markt) blogs to their ” MY COllECTIONS” as their reading list or archive. USERS can add/remove using a custom BUTTON appear on top of the blog articles. These buttons appear only when we paste the below code on the single.php page.
if ( is_user_logged_in() ) {
?>
<div id=”row” class=”row”>
<?php
echo do_shortcode( ‘[addto_fav]’ );
echo do_shortcode( ‘[addto_archieve]’ );
?>
</div>
<?php
}
After theme update this code is not working and add/remove BUTTONs are not appear above the blog/article.
How to resolve this where should we add the above code to make the “My Reading List” & “My Archive” buttons appear.
Here is the screen shot from a blog page with Button before THEME UPDATE. https://drive.google.com/file/d/1uAOleIacvZ6AV-rqQrPK9bB_2P3xTo7x/view?usp=sharing
Please help us resolve this issue. Let me know of any clarification.
Thanks
i i put ad code <?php echo do_shortcode(‘[td_block_ad_box spot_id="custom_ad_2"]‘);?> like every time to to loop-single post php and this code should be working but i have experiance 3 year without any problems now with new update my code for custom ad dosent work so can you help me
i’ve update newspaper at latest version but now i cant find loop-single.php to insert this code:
<?php echo do_shortcode (‘[td_block_ad_box spot_id="custom_ad_4"]‘);?>
and show ARTICLE BOTTOM AD under social button.
what i have to do?
Hi Simion
thanks. This is the code, I added before in the different loop-single files to appear right after the content:
<?php echo $td_mod_single->get_content();?>
</div>
<div class="artikelende">
<?php echo adrotate_group(3); ?>
<h3>Ihnen hat der Beitrag gefallen? Dann bitte ...</h3>
<?php {if(function_exists('the_ratings')) { the_ratings(); } ;} ?>
<?=do_shortcode('[shariff align="center"]')?>
</div>
<footer>
What would be the best place now?
Cheers
Hansjörg
Hi Calin,
I did Exactly as you advised and still not working at all, i even deleted the whole file just for testing and it did work with no error, maybe i miss something.
i just really need to make some styling and implement this shortcode for social media login:
<?php echo do_shortcode('[miniorange_social_login theme="default"]') ?>
Thanks in advanced.
Hi,
Depends, if you use a default predefined post template style and wish to insert that shortcode, you would have to edit the post template files. After update 9.7 the post template files have been moved in the tagDiv composer plugin – http://prntscr.com/nilv4m Some similar topics to use do_shortcode here – https://forum.tagdiv.com/topic/ads-below-pagination/
For older theme versions a child theme could be used to copy and modify/add code in the single template files – https://forum.tagdiv.com/the-child-theme-support-tutorial/
Or you could use a cloud post template – https://cloud.tagdiv.com/#/load/Single
In this case you can add a column text element in the template with the composer, in the location you want, and add the shortcode in it – http://prntscr.com/nilxwn
Let me know if you have more questions.
Thanks
Hi all,
I have a custom ad box placed just above the featured image on single_template_2.php. I used to call the ad by using the following code: <?php echo do_shortcode ('[td_block_ad_box spot_id="custom_ad_1" tdc_css=""]'); ?>
The problem is that the structure of the file after the update is very different, and I am unable to find the correct position where I should put the code inside the single_template_2 file.
Regards,
Ronaldo
Hi Catalin,
Thanks for the reply.
I made the modification in the file by placing the category ID as follows:
<?php
//show mobile grid only if Featured cat exists
if ( get_cat_ID(TD_FEATURED_CAT) !== 0) {
echo do_shortcode('[td_block_big_grid_mob_1 category_id="29" sort="featured"]');
}
?>
<?php the_content(); ?>
But when wanting to use only the posts in the category (id=29) are not shown in the Theme Mobile.
I’m forgetting to do something?
Thanks.
Simion, thank you for your response.
Sorry for the ambiguity: The tdc_main.php file containing the comments “//// Add external shortcodes….” was taken from a version 8.5 directory I had archived, …\Newspaper\includes\plugins\td-composer\includes\tdc_main.php Line 231.
I grepped the current installation of version 9.5 and those comments are not found.
The irony is that the Newspaper 8.5 version worked fine in early January 2109 (and since we purchased the product in 2017): Shortcode in the excerpt field worked before the 2019 WordPress and PHP updates – I think up to WordPress 4.95, and PHP 7.0.32.
In any case, our TablePress shortcodes are no longer rendering properly on category pages (and haven’t since January):
https://ipq.org/category/warning-letters/
These shortcodes are added to the excerpt field in the post, such as (HTML brackets are stripped for clarity):
a href=”https://ipq.org/micro-labs-limited/”><font color=”000000″>[table id=217 /]</font></a
You can see by visiting the page that the shortcode text is linked, ie. being read.
I’ve not been able to have any shortcodes render under these conditions, not even old built-in WordPress shortcodes.
The Call Stack I’m getting from the td_action undefined index error is (edited for clarity):
load_css_live (…\plugins\td-composer\css-live\css-live.php:31)
require_once (…\plugins\td-composer\css-live\css-live.php:592)
tdc_plugin_init (…\plugins\td-composer\td-composer.php:68)
WP_Hook->apply_filters (…\wp-includes\class-wp-hook.php:286)
WP_Hook->do_action (…\wp-includes\class-wp-hook.php:310)
do_action (…\wp-includes\plugin.php:465)
require_once (…\Newspaper\includes\wp_booster\td_wp_booster_functions.php:214)
include (…\Newspaper\functions.php:44)
require_once (…\wp-settings.php:479)
require_once (…\wp-config.php:105)
require_once (…wp-load.php:37)
{main} (…\wp-admin\admin-ajax.php:22)
The code we used to deliver the hooks were – and currently are – added to the Newspaper/functions.php file, LINE 12:
add_filter(‘the_excerpt’, ‘shortcode_unautop’);
add_filter(‘the_excerpt’, ‘do_shortcode’);
add_filter(‘get_the_excerpt’, ‘do_shortcode’);
Please pardon me for any errors, including errors in communication, I’ve been working on this off-and-on since January. Many attempts were made to fix this problem, including: • new installations with the old Newspaper 8.5 theme • new installations with the new theme • deactivation and deletion of plugins, including combinations thereof, and • running on PHP 7.0.32 in a development environment.
Our ipq.org site is a development site, as is ipqpubs.org, where these problems first arose.
I just began the debugging process in Visual Studio Code, a few days ago. Your assistance is greatly appreciated. I’m sure the solution is a very simple one.
Thank you!
-
This reply was modified 7 years by
charles.kiss@gmail.com.
-
This reply was modified 7 years by
charles.kiss@gmail.com.
-
This reply was modified 7 years by
charles.kiss@gmail.com.
I have installed the AccessPress Anonymous Post Pro plugin to allow front-end submission forms. In the instructions for displaying the custom for it says the following:
Using Shortcode
For showing the anonymous post form in any page in the frontend, please use [ap-form id=”form_id”] shortcode in the page’s content editor or just use <?php echo do_shortcode[ap-form id=”form_id”] ?> inside your theme’s template file where you wish to show the anonymous post form for the frontend post submission.
Does the Newspaper9 theme support this plugin and if so, how and where do I add the shortcode without going into the theme code. Usig the TabDiv theme editor instead?
i see that i can add echo do_shortcode( ‘[td_block_ad_box spot_id="custom_ad_1"]‘ ); to single.php / td_category_template_1.php but looiking for less intrusive action 🙂 maybe a filter etc ?
HI i have question how to inster external shortcodes into tag div builder. Iam migrating site for my client that use DIVI / Extra heavy modified with alot additional plugins
in current site i was using this plugin than i inserted directly via header.php
<?php echo do_shortcode (“[show-logos orderby=’rand’ category=’partnerzy-komercyjni’ activeurl=’new’ style=’normal’ interface=’hcarousel’ tooltip=’false’ description=’false’ limit=’0′ padding=’10’ filter=’false’ ]”); ?>
or directly with [show-logos orderby=’rand’ category=’partnerzy-komercyjni’ activeurl=’new’ style=’normal’ interface=’hcarousel’ tooltip=’false’ description=’false’ limit=’0′ padding=’10’ filter=’false’ ] inside divi builder
it worked also without php code direcly in divi builder …
another plugin is https://pl.wordpress.org/plugins/vimeography/ that create [vimeography id=”1″] shortcode –
puting shortcode as raw html row results prining shortcode not the plugins content
is any ueasy way to add similar funcionality native with Newspaper ( logo carousel maybe ) or making shortcode work ?
Thanks Simion C.
I switch code to “echo do_shortcode(‘[td_block_big_grid_mob_1 category_id=”1″ sort=”featured”]’);”
But not work, not show. There was here a way to reverse this, to show all categories as it was before?
Thanks,
The below Ad-code shows in Homepage and Page/2, 3, 4 too
So I just want to show in the Ad-code on Homepage only.
$adcounter++;
if (is_home()) {
if ($adcounter == 5) {
echo do_shortcode(‘[td_block_ad_box spot_id="custom_ad_1"]‘);
}
}
Hi,
You should edit the page template, category template, and single post template used by you and add the News Ticker element using the do_shortcode() method if you want to achieve this. You need to it yourself through the code because we cannot provide custom work at the moment, sorry! Usually, we recommend the developers from studio.envato.com.
Thanks for your understanding!
hello, can you tell me if can use the classic wordpress shortcode example: do_shortcode (‘[rt_reading_time]’ when using a Cloud Template related to single “post” pages?
Currently I can use shortcodes, but only using the classic templates and modifying the relative loop-single-2.php in the child theme. Vice versa with the Single Post Template 7 I do not know where to intervene.
Thank you.
And how to insert slider on all my posts? Is it possible?
Where i need to insert this code? <?php echo do_shortcode(‘shortcode here’);?>
I want to display slider right under the main menu.
Hi,
If you want to use the Revolution Slider in post pages, notice that first of all, you need to create your slider from the plugin, and then, take the generated shortcode and place it inside your desired post page (switch to code editor).
– https://www.screencast.com/t/VgOkSnGNH
Also, you should use the do_shortcode method for this ->
<?php echo do_shortcode(‘shortcode here’);?>
Thanks
Hi,
What kind of Ads Code did you have added? If you want to add some ads through your category pages, you need to use the do_shortcode() function and add it through the theme’s core files. Check the following topic from here -> https://forum.tagdiv.com/topic/ads-on-category-pages/
Thanks for your understanding!
Hi,
Unfortunately, the theme does not have any such an option that allows you to do this, sorry! Also, if you want to add something like this at the post pages, you need to edit the theme core files, corresponding to your post template used by you and use the do_shortcode() method for this. Also, 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 can not provide custom work at the moment, sorry!
Thanks for your understanding!
I got this:
Fatal error: Uncaught Error: Call to undefined function iconv() in /home2/tameteora/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_util.php:1541 Stack trace: #0 /home2/tameteora/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_css_res_compiler.php(54): mb_detect_encoding(‘\xF7\xAD\xF9’) #1 /home2/tameteora/public_html/wp-content/themes/Newspaper/includes/shortcodes/td_block_25.php(78): td_css_res_compiler->load_settings(‘td_block_25::cs…’, Array) #2 /home2/tameteora/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_block.php(231): td_block_25->get_custom_css() #3 /home2/tameteora/public_html/wp-content/themes/Newspaper/includes/shortcodes/td_block_25.php(98): td_block->get_block_css() #4 /home2/tameteora/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_global_blocks.php(28): td_block_25->render(Array, ”) #5 /home2/tameteora/public_html/wp-includes/shortcodes.php(319): td_global_blocks::proxy_function(Array, ”, ‘td_block_25’) #6 [internal function]: do_shortcode_ in /home2/tameteora/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_util.php on line 1541