No search results were found in Documentation!
I tried to implement as per your instructions. Please check this screenshot it was with the_field.
I don’t know where i am making a mistake. I again changed the code to get_field and it still remains the same. Here you can see it.
Here is the full code of loop-single-1.php in which i am inserting.
<?php
/**
* The single post loop for post template 1
**/
if (have_posts()) {
the_post();
$td_mod_single = new td_module_1($post);
//show the breadcrumb
if (get_post_type($post) == 'post') {
echo td_page_generator::get_single_breadcrumbs($td_mod_single->title);
} else {
echo td_page_generator::get_page_breadcrumbs($td_mod_single->title);
}
?>
<article id="post-<?php echo $td_mod_single->post->ID;?>" class="<?php echo join(' ', get_post_class());?>" <?php echo $td_mod_single->get_item_scope();?>>
<header>
<?php echo $td_mod_single->get_title();?>
<div class="meta-info">
<?php echo $td_mod_single->get_category();?>
<?php //echo $td_mod_single->get_author();?>
<?php echo $td_mod_single->get_date(false);?>
<?php echo $td_mod_single->get_commentsAndViews();?>
</div>
</header>
<?php if (!empty($td_mod_single->td_post_theme_settings['td_subtitle'])) { ?>
<p class="td-sub-title"><?php echo $td_mod_single->td_post_theme_settings['td_subtitle'];?></p>
<?php } ?>
<?php
// override the default featured image by the templates (single.php and home.php/index.php - blog loop)
if (!empty(td_global::$load_featured_img_from_template)) {
echo $td_mod_single->get_image(td_global::$load_featured_img_from_template);
} else {
echo $td_mod_single->get_image('art-big-1col');
}
?>
<div class="td-post-text-content">
<?php echo $td_mod_single->get_content();?>
// Set up your row, column, and tabs element
$to_echo = '[vc_row][vc_column width="1/1"][vc_tabs]';
// Simplest possible example of getting ACF data, sub in yours
$data_1 = get_field('2g_network');
$data_2 = get_field('3g_network');
// Repeat these lines for each tab, making sure each tab has a unique id
$to_echo .= '[vc_tab title="The first tab" tab_id="tab_1"];
$to_echo .= $data_1;
$to_echo .= '[/vc_tab]';
$to_echo .= '[vc_tab title="The second tab" tab_id="tab_2"];
$to_echo .= $data_2;
$to_echo .= '[/vc_tab]';
// (You could wrap each block in an if to skip a tab if the data is empty)
// When you have all your tabs, close the elements
$to_echo .= '[/vc_tabs][/vc_column][/vc_row]';
// We have to filter the whole string to make WP interpret the shortcodes
$to_echo = wpb_js_remove_wpautop($to_echo);
// Do whatever
echo $to_echo;
</div>
<div class="clearfix"></div>
<footer>
<?php echo $td_mod_single->get_post_pagination();?>
<?php echo $td_mod_single->get_review();?>
<?php echo $td_mod_single->get_source_and_via();?>
<?php echo $td_mod_single->get_social_sharing();?>
<?php echo $td_mod_single->get_social_like_tweet();?>
<?php echo $td_mod_single->get_next_prev_posts();?>
<?php echo $td_mod_single->get_author_box();?>
<?php echo $td_mod_single->get_item_scope_meta();?>
</footer>
</article> <!-- /.post -->
<?php echo $td_mod_single->related_posts();?>
<?php
} else {
//no posts
echo td_page_generator::no_posts();
}?>
I think the code is not executing. Am i placing it in the wrong way?
Hi,
I have tested the excerpt on each module using the latest theme version (4.2.2) and works fine. Make sure you do this right following this guide: https://forum.tagdiv.com/how-to-change-the-excerpt-length/
You can add the excerpt that you want for each post using the excerpt filed from post editing panel: http://screencast.com/t/9vpdduYY
Thanks
Yeah, basically some new features, house cleaning; a lot of wp configuration tools under the hood; but not the big “security panic” updates of some of the recent dot revisions. But always check the codex to see changes, since if there is a notable security fix you SHOULD update to remain secure.
http://codex.wordpress.org/Version_4.0
Highlights
◾ Manage your media and embedded content with style ◾ Explore your uploads in a beautiful, endless grid
◾ A new details preview makes viewing and editing any amount of media in sequence a snap.
◾ The content-editing experience is better than ever ◾ The visual editor now expands to fit your content
◾ A fixed toolbar in the editor when you scroll
◾ Embeddable content previews right in the visual editor
◾ Better workflow for finding and installing plugins ◾ A new grid view adds some visual flair to finding and installing plugins, bringing relevant plugin info front and center
◾ For Developers ◾ Customizer Panels API
◾ Updated external libraries
◾ Better flexibility for WP_Query ORDER BY
Hey guys,
I have been working on a social sharing plugin for the Newspaper theme. Since the social sharing buttons that comes with the theme isn’t pretty great and all the other famous plugins are full of bloat-ware, I decided to make it as clean as possible.
So, I tried Bootstrap and Font Awesome to make the buttons. It worked properly but then I found out that the theme has custom version of Bootstrap, meaning that it conflicts with the stock-version of Bootstrap. Christopher,(the man who supports almost everyone at the forum ;)) suggested me to change the classes. So, I did but didn’t work.
Then I decided to move it to PureCSS and it worked. Here is how it looks like:

Features:
-
Its ridiculously responsive
WordPress 4.0 (just released) ready
Based on Font Awesome and PureCSS (faster loadtime)
Upcoming Features:
Share counts.
Yes, it is a lot like the RRSSB plugin but the plugin doesn’t play well with the Newspaper theme.
If you want, you can download my plugin from here.
I have added the plugin to WordPress.org and it is under review; I will update the thread as soon as it is approved.
P.S: TagDiv, if you think I am self-promoting, delete the thread but please don’t “ban” me. I just wanted to share it with the other users 🙂
So what do you guys think?
Even if I change the Excerpt in the Theme Panel it still shows more than I want. Will there be a fix for this any time soon? @Lucian
The version included with the theme update today has newer version.
Version 4.6 SkyWood (25th August 2014)
NEW FEATURES
•Option to disable each video on mobile
•Option to disable Pan Zoom on Mobile
•Option to disable Parallax on Mobile
•Randomized Animation from the Selected Animations available now
•New Offset option for the Scroll Below Function
•New Option to set Slider Min Height – Content will be vertical centered in case content container is smaller then min height of Slider
•New Loop Options for HTML5 Videos: none, loop and stop Slider Timer or Loop till Progress Bar reaches the End
CHANGES
•Alternative First Slide wins now, even if Random Slides is enabled
•Vimeo, YouTube and HTML5 Video can be added now via options on demand instead of preadding iFrames. This will avoid Preloads delays, and slow site loadings
•Using now tp-videolayer class for Videos to identificate Video Layers better
•Class “current-sr-slide-visible” added to the Slide “li” tag which is currently Visible
•Swipe Engine Change
•Swipe Treshold Option Default 75 – The number of pixels that the user must move their finger by before it is considered a swipe.
•Swipe Min Finger Default 1 – Min Finger (touch) used for swipe
•Drag Block Vertical Default false – Scroll Auto below Slider on Vertical Swipe on Slider
BUGFIXES
•YouTube Force Rewind fix
•YouTube Mute in Second Loop fix
•Added backwards compatibility for inline CSS with WordPress versions under 3.7
•Ken Burns Dotted Overlay was not visible
•IE8 Console Group Issue – Slider was not visible in IE8
•Looping Issues if Slides has been manually hanged after Loop Stopped
•Browser Tab Change -> Broken ELements fixed. Option for Slide Change on Blur Tab / Browser also available.
•Navigation Style Preview1- Preview4 Styling issues
•Power2 Error at some Animation
•Mouse Over on Loaded PArallax Slider issue – Slider will always play parallax effect, even if Mouse was already hovering the slider at laod
•IE8 and other Old MObile Devices Fall Back on simple Transitions. CAn be forced now
•HTML5, YouTube and Vimeo Video Playback fixes
Hi,
After a closer look I have noticed that the WordPress default option from theme panel is used only for feed excerpt and for plugins that use the WordPress excerpt length, that is why it dose not work on modules, as I mentioned before you can change the excerpt an any module using the theme panel for each module so this way you will be changing all the excerpts on your site.
We will change this and we will point out that the WordPress default option is for feed.
Sorry for the inconvenience and thanks for the message!
@Lucian, no problem. Hope to see a fix soon. If you can post it in here instead of the next update that would be awesome because I have been having update problems so Im sticking on 4.0.2.
Hi,
Thanks Christopher!
@sbo
Thanks for reporting this, I have tested this and seems it’s not working, we will look at this and added it on our issue list try to fix it as soon as possible, until we fix this you can set the excerpt on modules, I have tested it and work fine.
Sorry about this!
Thanks for the message!
Currently the area in functions.php looks like:
/* ----------------------------------------------------------------------------
excerpt lenght
*/
add_filter('excerpt_length', 'my_excerpt_length');
function my_excerpt_length($length) {
// on feed show full content if it's set in wordpress
if (is_feed() and get_option('rss_use_excerpt') == 0) {
return 999999;
}
$excerpt_length = td_util::get_option('tds_wp_default_excerpt');
if (!empty($excerpt_length) and is_numeric($excerpt_length)) {
return $excerpt_length;
} else {
return 20; //default
}
}
I adjusted the ‘return’ but that still doesn’t work. Where do I add your adjustment?
I usually over-ride this in the functions.php file as best way.
http://codex.wordpress.org/Function_Reference/the_excerpt
Don’t forget WordPress has awesome documentation on a lot of this kind of thing.
To wit:
Control Excerpt Length using Filters
By default, excerpt length is set to 55 words. To change excerpt length to 20 words using excerpt_length filter, add the following code to functions.php file in your theme:
function custom_excerpt_length( $length ) {
return 20;
}
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
In Theme Panel, if im not mistaken ‘Excerpt Length’ is the amount of text shown in the preview of the post. I have it set to 14 (http://screencast.com/t/EPLVL5YsWK2r) but it still seems to display over 14 words (http://screencast.com/t/bi2Hma5Qz4BE) – any suggestions?
P.S. works in preview
Here it is and here’s how I got it:
1. Copied and pasted your child theme functions code
2. Copied and pasted the function td_load_css from the parent theme’s functions code
3. Changed the name from td_load_css to my_td_load_css
4. Changed the line you mentioned to include ‘&subset=latin,latin-ext’
5. Copied the two extra lines I mentioned in my first post and pasted them at the very end
See if this works:
/* ----------------------------------------------------------------------------
WordPress booster framework - this is our theme framework - all the content and settings are there
It is not necessary to include it in the child theme only if you want to use the API
*/
if (!defined('TD_THEME_WP_BOOSTER')) {
include TEMPLATEPATH . '/includes/td_wordpres_booster.php';
}
function my_td_load_css() {
//google fonts
if ((defined('TD_DEPLOY_MODE') and (TD_DEPLOY_MODE == 'demo' /*or TD_DEPLOY_MODE == 'dev' */)) or defined('TD_SPEED_BOOSTER')) { //on demo and dev we load only the latin fonts
//modify this collection if you want to optimize the fonts loaded
//collection url -> : http://www.google.com/fonts#ReviewPlace:refine/Collection:PT+Sans:400,700,400italic|Ubuntu:400,400italic|Open+Sans:400italic,400|Oswald:400,700|Roboto+Condensed:400italic,700italic,400,700
wp_enqueue_style('google-font-rest', td_global::$http_or_https . '://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic|Ubuntu:400,400italic|Open+Sans:400italic,400|Oswald:400,700|Roboto+Condensed:400italic,700italic,400,700&subset=latin,latin-ext'); //used on menus/small text
// Above line has been modified in child theme to include '&subset=latin,latin-ext'
} else {
$td_user_fonts_list = array();
$td_user_fonts_db = td_util::get_option('td_fonts');
if(!empty($td_user_fonts_db)) {
foreach($td_user_fonts_db as $td_font_setting_key => $td_font_setting_val) {
if(!empty($td_font_setting_val) and !empty($td_font_setting_val['font_family'])) {
$td_user_fonts_list[] = $td_font_setting_val['font_family'];
}
}
}
if(!in_array('g_438', $td_user_fonts_list)) {//'g_438', //Open Sans
wp_enqueue_style('google-font-opensans', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic'); //used on menus/small text
}
if(!in_array('g_617', $td_user_fonts_list)) {//'g_617', //Ubuntu
wp_enqueue_style('google-font-ubuntu', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,300italic,400italic,500italic,700italic&subset=latin,cyrillic-ext,greek-ext,greek,latin-ext,cyrillic'); //used on content
}
if(!in_array('g_453', $td_user_fonts_list)) {//'g_453', //PT Sans
wp_enqueue_style('google-font-pt-sans', td_global::$http_or_https . '://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic&subset=latin,cyrillic-ext,latin-ext,cyrillic'); //used on content
}
if(!in_array('g_445', $td_user_fonts_list)) {//'g_445', //Oswald
wp_enqueue_style('google-font-oswald', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Oswald:400,300,700&subset=latin,latin-ext'); //used on content
}
if(!in_array('g_521', $td_user_fonts_list)) {//'g_521', //Roboto
wp_enqueue_style('google-roboto-cond', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,400,300,700&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic'); //used on content
}
if(!in_array('g_639', $td_user_fonts_list)) {//'g_639', //Vollkorn
wp_enqueue_style('google-vollkorn', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Vollkorn:400italic,700italic,400,700'); //used on quoates classic
}
}
//add the google style link for fonts used by user
$td_fonts_css_files = td_util::get_option('td_fonts_css_files');
if(!empty($td_fonts_css_files)) {
wp_enqueue_style('google-fonts-style', td_global::$http_or_https . $td_fonts_css_files);
}
//bootstrap - custom built - it was generated via compilation of /external/bootstrap-master/less/bootstrap.less
$responsive = td_util::get_option('tds_responsive');
switch ($responsive) {
case '980_responsive':
wp_enqueue_style('td-bootstrap', get_template_directory_uri() . '/includes/wp_booster/external/bootstrap/td-bootstrap-980-responsive.css', '', TD_THEME_VERSION, 'all' );
break;
case '980':
wp_enqueue_style('td-bootstrap', get_template_directory_uri() . '/includes/wp_booster/external/bootstrap/td-bootstrap-980-not-resp.css', '', TD_THEME_VERSION, 'all' );
break;
case '1170':
wp_enqueue_style('td-bootstrap', get_template_directory_uri() . '/includes/wp_booster/external/bootstrap/td-bootstrap-1170-not-resp.css', '', TD_THEME_VERSION, 'all' );
break;
default:
wp_enqueue_style('td-bootstrap', get_template_directory_uri() . '/includes/wp_booster/external/bootstrap/td-bootstrap.css', '', TD_THEME_VERSION, 'all' );
break;
}
//main theme style - set the TD_DEBUG_USE_LESS flag in /includes/app/td_config.php and the theme will load the less files and compile them for you
if (TD_DEBUG_USE_LESS) {
wp_enqueue_style('td-theme', get_template_directory_uri() . '/td_less_style.css.php', array('td-bootstrap'), TD_THEME_VERSION, 'all' );
//wp_enqueue_style('td-theme', get_template_directory_uri() . '/style.less', array('td-bootstrap'), TD_THEME_VERSION, 'all' );
} else {
wp_enqueue_style('td-theme', get_stylesheet_uri(), array('td-bootstrap'), TD_THEME_VERSION, 'all' );
}
}
remove_action('wp_enqueue_scripts', 'td_load_css');
add_action('wp_enqueue_scripts', 'my_td_load_css')
Hi,
I have tested this and seems that it’s working fine, please make sure you use it like this: http://screencast.com/t/gNzWHA1H0H
Make sure you set the counter on words, like this: http://screencast.com/t/6YCJUPSCZaJ
We will review our documentation also in the near future, thanks for reporting this.
Thanks
Ah, that makes sense. It only has been doing it on a few, so I’ll just drop the issue unless it starts doing it for new posts/pages. Thanks for your help!
Has something to do with permalinks. The preview is trying to load it by ID, maybe, but the link is the slug, so it doesn’t find it. Or vice versa. I haven’t worked with custom post types, so unfortunately I can’t outline the steps to fix.
On a side note, the similar name preview is actually the same as 404. If you put in a slug that doesn’t exist, WP suggests the end of the slug. If it can’t find any matches, you get 404. You learn something every day 😀
Hello, I have a custom post type called “destinations” and the preview function as I edit doesn’t work properly. For some of these destination pages, it returns the 404 pages as a preview, and for others, it previews existing posts that start with the same name. For example, I was editing “Asia” destination, and when previewing my edits, it previewed a blog post called “Asia’s 5 Best Cities for Street Food.”
Any idea what’s causing this? Thanks in advance!
Hi,
The “tag cloud” widget comes with WordPress, you can try to control the tag number and other options like this:
First install this plugin which allows you to add php code into an text widget: http://wordpress.org/support/view/plugin-reviews/php-text-widget
Then go to http://codex.wordpress.org/Template_Tags/wp_tag_cloud and get this code:
<?php wp_tag_cloud( $args ); ?> and add it into an text box widget like this: http://screencast.com/t/8Stb1QyXa7us
You will get this result: http://screencast.com/t/JHgwk4UfgN
Hope this helps!
Thanks
You may find it useful to review the WordPress docs on using comments to review all the options beyond just on/off in the WordPress settings > discussion …
best bet is to review the docs for the theme:
https://forum.tagdiv.com/newspaper-documentation/
really simple, but best way to do it is via FTP:
https://forum.tagdiv.com/how-to-update-the-theme/
1. How to update the theme (manual)
Here are the steps required to update the theme via FTP:
◾Connect to your FTP account using Filezilla
◾It is a good idea to make a backup of your current theme installation
◾Unzip the theme downloaded from http://www.themeforest.net to a folder, in this folder you will find a file called Newspaper.zip
◾Unzip the theme (Newspaper.zip)
◾Via Filezilla go to the wordpress theme directory “your site public html/wp-content/themes/Newspaper”
◾Overwrite the files from that FTP folder with the ones from the content of Newspaper.zip
How do I get rid of this code under the video preview?

Likely best to review the support info on the Buddypress website as their goal is to make it compatible with all themes and take the burden of theme developers out of the mix, at least that is what they are saying on their site 🙂
So, technically all themes are compatible with Buddypress – and that compatibility is managed by Buddypress folk. As long as the site works with WP 3.9 and is not a horrible mess, it should work just fine.
http://buddypress.org/extend/themes/
However worth noting this theme is primarily setup for a “newspaper” site and not a social network portal (hence the name); two totally different things.
Best bet .. try it! 🙂
-
This reply was modified 12 years by
simchris.
Hi,
I just bought the theme and i love it! I would like to use the same header menu style you have in the Classic Blog preview(http://demo.tagdiv.com/newspaper_classic_blog/), but i didnt found it. Can you help me please?
Thanks in advance.
HI, first step might be to review the docs, which describe setup, and how to customize your home page using modules:
https://forum.tagdiv.com/newspaper-documentation/