Author box ( add latest post title)

Posted in: Newsmag
Post count: 83

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…

Post count: 83

I dont want website adress by the way instead latest article…

Post count: 6535

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/uqCaVDBo6http://screencast.com/t/qflywrHnM

Thanks!

Post count: 83

The second Screenshot is what i want but at the bottom of post number instead opf web adress i want to see the Latest post by that author, is it possible?

Post count: 83

3 Lines
1= Author Name
2= Post Number
3= Latest post Title by that Author (title links to that post)
Thnx alot

Post count: 83

any solution for the 3rd line?

Post count: 83

Hope i recieve good news soon (about 3rd line) 🙂
1-2 line i solved it from your help thnx …

Post count: 6535

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/r4eMrWV9http://screencast.com/t/BoabVJVUjt

Thanks!

Post count: 83

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…

Post count: 6535

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..
Post count: 83

Thnx everything looks great 🙂

Post count: 83

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.
Post count: 83

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>';

Post count: 83

With 9.7 this changed, i need help to achive it with 9.7 TagDiv Pls help…

https://sonsoz.com.tr

Post count: 23312

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!

Post count: 83

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.
Post count: 23312

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!

Post count: 83

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">';
$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>';
will not work anymore so can you support us how to implement such thing…

Post count: 23312

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!

Post count: 83

That file does not exist anymore in 9.7 Pls need help…
As 9.7 arrives shorcodes folder has been removed, you should know that…

Post count: 23312

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!

Post count: 83

Ty my Problem Solved…

Viewing 22 posts - 1 through 22 (of 22 total)
You must be logged in to reply to this topic.