Search Results for 'author box'

    No search results were found in Documentation!

Results from the Forum
NadiaP7406
Participant
#0

For a page that features all the authors of the blog I use a default page with visual builder and put a full row with the author box.

On the page though it displays the author only with name, link and image where I want it to display description and social media icons as well. Just like in the post itself or like on an individual author page.

I can’t seem to find the code. The author box is only used on single author, and single post holds another one, but I can’t find the one that puts together this author boxes.

Please let me know where I can find the files and how I can duplicate the existing function to replace this one? Thank you!

dillermand16
tagDiv Member

Just to make sure, it is the author box on post where “admin” is the author i want to hide.

dillermand16
Participant
#0

Hey!

Is it possible to hide/exclude one specific Author from post’s?
If i dont want the admin author to show up on post’s added by admin, but still have the author box showing when other authors post.

Thanks in advice

dillermand16
tagDiv Member

Thank you very much 🙂

Much appreciated.

Marius
tagDiv Staff

Hi,
Use this code instead of above:

$buffy .= '<div class="vcard author"><span class="fn">';
$buffy .=  get_the_author_meta('description', $td_author->ID);
$buffy .= '</span></div>';

and this CSS:

.td_top_authors img {
    height: 100px !important;
    max-width: 100px !important;
    width: 100px !important;
}
.td_top_authors .item-details {
    margin-left: 122px !important;
}
.td_top_authors .item-details {
    height: auto !important;
}
div.vcard .fn {
    color: #444444 !important;
}
dillermand16
tagDiv Member

Hey Marius, thanks again for your quick response. but with this code, the authors will only get 1 author meta information, and that is from the first author. the descriptions need to be from each author how can i do this ?

Marius
tagDiv Staff

Hi,
You can make something similar editing the author box widget http://screencast.com/t/pzHlnhCTbH5T

You have to add this code to get the description of the authors

$buffy .= '<div class="vcard author"><span class="fn">';
$buffy .=  get_the_author_meta('description', $author_id);
$buffy .= '</span></div>';

http://screencast.com/t/aHFRz3yAzL12

Also you have to make some CSS changes.

.td_top_authors img {
    height: 100px !important;
    max-width: 100px !important;
    width: 100px !important;
}
.td_top_authors .item-details {
    margin-left: 122px !important;
}

Hope this help!
Thanks!

FrankG
Participant
#0

Been working with the theme for much of the past week, love it – covers almost all my needs.

Only significant problem I’ve come across is the ‘visibility’ function in the widgets don’t work. My posts have several categories so I aim to have a sidebar for posts in each category showcasing most recent stories in said category (eg. so a post categorised in ‘TV’ would only list posts also in the ‘TV’ category).

You have the option for that – ‘Recent Posts’ and then changing the visibility. Trouble is it doesn’t seem to work. I tried ‘Show’ ‘TV’ but the result is still the most recent posts across all 7-8 categories. I tried ‘Hide’ and selected all the other categories – same result.

In terms of suggestions for future editions:

1. ‘Dark’ color scheme. Not every site uses white backgrounds, some of us like our black and/or grey ones. An option to swap the color scheme between them would be great.

2. More ‘Blocks’. Five’s just not enough, especially as many are quite similar. Any chance of a ‘Block 6’ made entirely of ‘Module 5’ and a ‘Block 7’ made entirely of ‘Module 9’? Is there a way to build our own custom blocks?

3. Increased color options. I work on a site with seven or eight different categories. I love that I can adjust the colours of the tags and some headers to assign a specific color to different categories but can this go further? Can this apply to elements such as the color highlight in main menu, the widget sidebar headings, and the big slide titles, etc.

4. Minimised author option. Right now in posts, the only way to see the author is to include the great big honking ‘Author’ box down the bottom. Any chance of an option to change it so instead the author’s name only appears in a line of text at the top of the post – between the category listings and the publication time (like it is on the category pages)?

5. A third header style. Right now there’s a thin line underneath writing with no background (style 1), or a thin line with a raised colored background behind only the writing (default). Any chance of a raised colored background across the entire line?

6. Gallery pictures – along with attachment page or direct image, any chance of a css-only lightbox style popup option so when someone wants to see a bigger picture in comes up in a closeable box?

7. Category Pages – For those of us with a LOT of articles – in some cases over 10,000 in one category, ways to sort the order of a content are a must. Current category pages list only from the most recent to the oldest. Any chance of a way to list a categories stories in alphabetical order and jump to a specific letter?

7. More AdSense boxes – specifically a secondary sidebar one. A lot of sites use a 300×250 AND a 160×600 or 300×600 further down in their sidebars.

8. Love the various styles in the ‘Social Icons’ widget, much more than the fairly ordinary design of the ‘Sharing’ options in the posts themselves. Any chance of the latter to be more like the former?

dillermand16
Participant
#0

Hey i have created an Author Box on a page where i want to have all my author’s lined up.

Is it possible to change the layout of the author box module? i want it to look like Block 6 for example. so i will get the author picture, a preview of the text. how can i do this?

mehedi
Participant
#0

hello! whenever I click on the author box (to see my posts,comments) it redirects me to the homepage? is it a problem of the theme or there is something wrong>?

thanks!

quitifua6
Participant
Comments - topic
#0

Hello,

Can please tell me how to move this commnets http://i.imgur.com/qKemaBj.png
Right above author_box

EliptiK
tagDiv Member

Ok thanks, I found how to do that.
Can you just explain me where I have to add this code :
`related_posts();
Because I would like that it is after the author box in the articles…
Between the author box and comments.

Thanks !

Marius
tagDiv Staff

Hi,
We will take a look, thanks for reporting this.

lucioluci
Participant
#0

Hello!
i have found a small bug in the author box
http://www.questeistituzioni.it/il-segmento-invisibile-dello-stato-sociale-1020
when you set an email it seems not to intend the mailto: option, adding it to the normal url of the site.
I think it depends from the theme, i didn’t have any plugin that extend the author input fields in the backend

maxishere
tagDiv Member

Thanks for your help!

maxishere
tagDiv Member

Can see what you’re doing there, but unfortunately it didn’t work either. It’s also a lot of playing around with the code, which isn’t good for future theme updates. I might just have to settle for imperfection here!

webmaster808
tagDiv Member

That probably won’t work though, because the plugin is most likely coded to return $content and not $buffy…

That’s all I got. Good luck!

webmaster808
tagDiv Member

In that case, perhaps a different approach. Add your own hook and change the plugin to call later

In your td_module_1, you could add a hook. Change $buffy .= $this->get_content();

To this:

                $buffy .= $this->get_content();
                my_after_content_hook($buffy);

Then in your plugin files, you need to find the add_filter( 'the_content', 'the_plugin_function_name', $priority); and change it to add_filter( 'my_after_content_hook', 'the_plugin_function_name', $priority);

  • This reply was modified 12 years by webmaster808.
  • This reply was modified 12 years by webmaster808. Reason: Need to modify $buffy with the filter, not $content
maxishere
tagDiv Member

Nope. It didn’t bring up the white page, but it didn’t put the author box under the content either.

webmaster808
tagDiv Member

Yeah, the_content() doesn’t understand $this->get_author_box().

Does this work?

function my_td_authorbox($content){
  global $post;
  $content .= get_author_box($post->ID);
  return $content;
}
maxishere
tagDiv Member

Yep that’s what I was thinking now. Unfortunately that code doesn’t work, and just made a blank white page.

webmaster808
tagDiv Member

Ahh, the plot thickens…

Most likely your social plugin is using add_filter() to add their output to the end of the_content();

In that case, I think you would you would need to do something like this in your functions.php

// Filter the_content BEFORE the plugin does, this is by setting the priority argument, which is represented by the X.  Need to make sure that number is higher than the one that the plugin uses to add their filter
add_filter( 'the_content', 'my_td_authorbox', X );
function my_td_authorbox($content){
  // Not sure if $this will work in this context, just have to see.
  $content .= $this->get_author_box();
  return $content;
}
maxishere
tagDiv Member

Got it.. okay, here’s where we’re at.

Your original method DID work. However, because there is an advert and our social media icons plugin in between the bottom of the post and the author box, it didn’t show any differently. I just moved $buffy .= $this->get_author_box(); above the content, and the box appeared above. So your method did work afterall.

However, I need a way to get that author box above the social media icons plugin and the advert, effecively taking priority as the very first thing after the post content.

Any ideas?! Thank you for your help.

webmaster808
tagDiv Member

Well, as far as I can tell you are using module 1, which is the default module for single posts.

If that is true then making the edits that I suggested in wp-content/themes/Newspaper/includes/modules/td_module_1.php would do exactly what you want. How are you editing these files?

One way we can check to see what module is being loaded is to echo the variable.

On line 94 of your single.php file change <?php to <?php echo $loop_module_id;

Then, just inside the container div on your post you should see a single digit and that is the module number that is being called.

maxishere
tagDiv Member

Just to clarify on what I’m looking for, I’ve made a mockup:

http://www.thisisanfield.com/wp-content/uploads/moveauthorbox.png

That’s based on this post:

http://www.thisisanfield.com/2014/02/can-liverpool-end-seven-year-arsenal-jinx/

Viewing 25 results - 2,251 through 2,275 (of 2,340 total)