Hello, i need some help, if you can check http://sonsoz.com.tr you can see my author’s list and the post number and comment number ,
what i want is i want to show post number and lastest article… i dont wanna show comments (but not that important commentts can stay with latest article…)
Can anyone out there help me achive this?
I am not a pro coder so i need instructions if possible…
Thanks alot…
Hi
I am not sure how you want to display latest article in author box, please provide more details and maybe I can help you. To remove the comment count and website address from author box follow this link: http://screencast.com/t/uqCaVDBo6 – http://screencast.com/t/qflywrHnM
Thanks!
Hi
Sorry for the delay, we don’t work in weekend.
To display latest article published by author replace the code from: td_block_authors.php with this one: http://pastebin.com/r4eMrWV9 – http://screencast.com/t/BoabVJVUjt
Thanks!
Andrei thnx soo much, i am happy now but a small 1 more thing i need, when authors latest post title is 2 lines or more it moves to the next authors space i need to auto arrange the size of author blocks in that manner… if it is possible ofcourse…
You can see the latest code in http://sonsoz.com.tr i like it this way also but if we can solve that issue it will be more great…
When i mouseover an author from author block small color change to very light grey from white and if there is a title long enough for 2nd line then the title appears a bit passed the other authors box…
Hope i can explain what i mean…
Again thnx tons for the help…
Hi
Try this css to increase the distances between the author boxes, you can modify the value as you like: http://screencast.com/t/rVmQ91FFx
.td_mod_wrap.td-pb-padding-side {
min-height: 100px;
}
Thanks!
-
This reply was modified 10 years by
Andrei L..
Hi there, as of pastebin no longer outthere, can you paste the code here, if possible…
I lost the code 🙁
http://www.screencast.com/t/BoabVJVUjt the code i need is in this picture…
-
This reply was modified 7 years by
Smanchi.
Solved :
Code for anyone that wants to add Authors Latest Posts to Authors Box
$buffy .= '<div class="td-authors-url">';
$last_article = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->posts WHERE post_author = %d AND post_status = 'publish' AND post_type = 'post' ORDER BY post_date DESC LIMIT 1", $td_author->ID), ARRAY_A);
$buffy .= '' . $last_article['post_title'] .'';
$buffy .= '</div>';
With 9.7 this changed, i need help to achive it with 9.7 TagDiv Pls help…
Hi,
You need to do it yourself via FTP way according to our documentation from here -> https://forum.tagdiv.com/install-via-ftp/ What is it that you can not do?
Thank you!
I updated Newspaper Already…
includes\shortcodes\td_block_authors.php this file has been deleted and new file has diffrent style coding…
I couldnt find the file to edit authorbox and the one i found the code differs in 9.7 so i need your help…
-
This reply was modified 7 years by
Smanchi.
Hi,
The Newspaper theme update brings a change for the theme implementation.
When you’ll be updating to the Newspaper 9.7 version, you’ll need to activate the tagDiv Composer to keep the Newspaper theme functionality you’ve previously used.
Otherwise, you will have basic WordPress functionality, complying with Envato WordPress Requirements – https://help.author.envato.com/hc/en-us/articles/360000472383-WordPress-Theme-Requirements. Also, the files and folders were changed a bit and if you want to edit that folder, you need to go here -> https://www.screencast.com/t/O6dcHY65WoEa
Thank you!
We Updated TagDiv Composer and was using tagdiv composer from the begining…
The Screenshot you send the file does not exist anymore… Thats why i am asking which file and where to edit to get the old style…
And $buffy .= '<div class="td-authors-url">'; will not work anymore so can you support us how to implement such thing…
$last_article = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->posts WHERE post_author = %d AND post_status = 'publish' AND post_type = 'post' ORDER BY post_date DESC LIMIT 1", $td_author->ID), ARRAY_A);
$buffy .= '' . $last_article['post_title'] .'';
$buffy .= '</div>';
Hi,
The file where you need to edit the code is here -> https://www.screencast.com/t/HQkWT6mvAsYM if you want to add some additional elements on that block.
Thank you!
Hi,
All the theme core files were moved on the td composer plugin and the above screen was made with the new path of this folder -> Now, the td_block_authors.php will find in plugins/td-composer/legacy/Newspaper/includes/shortcodes/td_block_authors.php.
Hope this helps!
Thank you!
