Author Box Help

Posted in: Newspaper
Post count: 25

I’m creating an “About Us” page and planned to use the author boxes to showcase each writer. The author boxes on your demo site include user description text and social icons. The author box on my site only inlcudes image and name (like a sidebar widget). How did I fix that?

Also, When it asks for “author ID” what specifically is it asking for? When I try to “exclude authors” by typing in their WP username, email, full name, etc. it doesn’t exclude them. When I try to only include ONE author, none of the user forms I try to enter actually work.

How do I fix both these issues?

Post count: 7909

Hi,

You have to edit td_authors.php and add this code: http://screencast.com/t/HKkmrz6F1r

$buffy .= '<div class="td-authors-description">';
       $buffy .= '<p>' . get_the_author_meta( "description", $td_author->ID ) . '</p>';
$buffy .= '</div>';

Also please add this custom css in Theme Panel > Custom Css: http://screencast.com/t/4nEPUjRNw6Bi

.td_top_authors div.item-details {
height: auto;
}

Thanks!

Post count: 22

Could you explain how to do this for a Child theme? Can’t see an example of the API Child Theme method that applies to shortcodes replacement/update ie replacing /includes/shortcodes/td_block_authors.php.
Thanks

Post count: 1291

Hi,

You have to check the API documentation here: – https://forum.tagdiv.com/the-theme-api/https://forum.tagdiv.com/the-child-theme-method/

An example for block 1 template file would be:

<?php
/* ----------------------------------------------------------------------------
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_config.php';
include TEMPLATEPATH . '/includes/wp_booster/td_wp_booster_functions.php';
}
add_action('td_global_after', 'hook_td_global_after'); // hook used to add or modify items via Api

function hook_td_global_after() { 

td_api_block::update_key('td_block_1', 'file', get_stylesheet_directory() . '/includes/shortcodes/td_block_1.php');

}

Thank you!

  • This reply was modified 11 years by Emil G.
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.