Ok thank you for your response! I hope you are going to add these features, especially the ‘show specific posts on id’ feature is very important because it allows users to display posts without creating superfluous categories…
2. Please also add a way to change the wordpress menu title background color and text color in visual composer, because this is one of the few modules where you can’t change it 🙁

3. Please also add a way to enable/disable the footer border, because there is no border when you set the background color in the theme options panel to white.
I know how to do these things in css but these kind of features should be available in the theme settings panel, in my opinion.

So basically I can remove all less files frok my host?
Hi Marius, thank you for your help.
So the .less files in /less_files/ are not used when TD_DEBUG_LESS_FILES is set false?
I am asking this, because I don’t want unnecessary files to be stored on my webhost.
Where can I find info about the booster plugin? I have never came across.
In case you use child theme:
1. Open Newsmag/includes/modules/td_module_single.php and save a copy (same filename) of this file in your child theme folder: Newsmag-child/includes/modules
2. Open Newsmag-child/includes/modules/td_module_single.php and replace whole function ‘get_author(){……}’ with the following code:
3. Change example categories (“CATEGORY1”, “CATEGORY2”, “CATEGORY3”, “CATEGORY3”) to post categories that shouldn’t display the author name.
4. Save file and upload file.
In case you don’t use child theme:
1. Open Newsmag/includes/modules/td_module_single.php and replace whole function ‘get_author(){……}’ with the following code:
2. Change example categories (“CATEGORY1”, “CATEGORY2”, “CATEGORY3”, “CATEGORY3”) to post categories that shouldn’t display the author name.
3. Save file and upload to your main theme.
Let me know…
Still not showing…
Could you please copy the raw html code of my post, put it in pastebin and share it with me? I cannot edit this post anymore, so I cannot change it.
I can help you hiding the author on specific categories, because I have this feature already implemented on my site.
I will explain you tomorrow how you can do it..
Sorry, I had misunderstood you 😉
Theme panel -> CATEGORIES -> [YOUR CATEGORY] -> SHOW CATEGORY BIG GRID
Hmm, unfortunately this forum has deleted parts of my php code, making my tutorial useless 🙁
You are awesome!! I was looking for sooo long to find this… 🙂 🙂
No problem, have fun!
Hi Lucian,
Thanks for your help, but I got a problem:
I tried to display related-posts and more-from-author seperately by adding code beneath to /includes/shortcodes/td_related_posts.php. The problem is that I cannot find a way to load more-from-author posts by default when only the more-from-author switch is being displayed. Displaying related-posts works fine, because the posts are already loaded by default.
Where can I find the default constructor of the posts that are displayed?
//get the filter for this block
$buffy .= '<h4 class="td-related-title">';
$post_cat = get_the_category();
if (strtolower(get_the_author_meta('display_name', $this->post->post_author)) == 'redactie') {
$buffy .= '<a>block_uid . '" href="#">' . __td('RELATED ARTICLES') . '</a>';
}
elseif (strtolower($post_cat[0]->cat_name) == 'expert blogs') {
$buffy .= '<a>block_uid . '" href="#">' . __td('MORE FROM AUTHOR') . '</a>';
}
else {
$buffy .= '<a>block_uid . '" href="#">' . __td('RELATED ARTICLES') . '</a>';
$buffy .= '<a>block_uid . '" href="#">' . __td('MORE FROM AUTHOR') . '</a>';
}
$buffy .= '</h4>';
Before pressing ‘MORE FROM AUTHOR’ title (still showing wrong ‘RELATED ARTICLES’posts):

After pressing ‘MORE FROM AUTHOR’ title (showing correct posts):

How can I load the posts like in the 2nd image is displayed by default when only the ‘MORE FROM AUTHOR’ module is displayed?
Please help me, I am trying for so long now….
Ok, I have tested it…
Put this:
human_time_diff( $td_article_date_unix, (int) current_time(‘timestamp’))
In the get_date() method inside /includes/wp_booster/td_module.php
My get_date() method inside td_module.php:
Don’t copy/paste the example, because it could change operations, since I’ve customized a lot in my theme!)
function get_date($show_stars_on_review = true) {
$visibility_class = '';
if (td_util::get_option('tds_p_show_date') == 'hide') {
$visibility_class = ' td-visibility-hidden';
}
$buffy = '';
if (td_review::has_review($this->td_review) and $show_stars_on_review === true) {
//if review show stars
$buffy .= '<div class="entry-review-stars">';
$buffy .= td_review::render_stars($this->td_review);
$buffy .= '</div>';
} else {
if (td_util::get_option('tds_p_show_date') != 'hide') {
$td_article_date_unix = get_the_time('U', $this->post->ID);
$buffy .= '<div class="td-post-date">';
$buffy .= '<time itemprop="dateCreated" class="entry-date updated td-module-date' . $visibility_class . '" datetime="' . date(DATE_W3C, $td_article_date_unix) . '" > ' . human_time_diff( $td_article_date_unix, (int) current_time(‘timestamp’)) . '</time>';
$buffy .= '<meta itemprop="interactionCount" content="UserComments:' . get_comments_number($this->post->ID) . '"/>';
$buffy .= '</div>';
}
}
return $buffy;
}
I’m gonna try it on my own site..
I think you put this code:
<?php echo human_time_diff( get_the_time(‘U’), current_time(‘timestamp’) ) . ‘ ago'; ?>
inside Newsmag/includes/modules/[YOUR MODULE].php
instead of putting it inside get_date() in:
Newsmag/includes/wp-booster/td_module.php
Am I right?
Np, have fun! 😉
Did you try it? On my pc it did work well. This should only disable it for the last item because of ‘last-child’.
Btw, this fix doesn’t work on ie 8 and older, so do you use ie?
Ok, I think I know how to solve this problem. I will test it and return it to you.
Did you enable it in the block settings?
Strange, should be working.. :S
Do get_date() and current_time(‘timestamp’) give you the correct date when you create a post?
Try to find the error by adding this to your php file:
echo '<script type="text/javascript">alert("' . get_date() . '")</script>';
echo '<script type="text/javascript">alert("' . current_time('timestamp') . '")</script>';
This will show a message box with the return value of both methods…
Try to add this to custom css or style.css in child theme:
.sf-menu li:last-child a:hover,
.sf-menu .sfHover:last-child a {
background-color: transparent;
}
Thx, but how do I add a banner and 4 menus like the example?
class td_module_4 extends td_module {
should be:
class td_module_16 extends td_module {
I still got the problem 🙁