Authors Widget

Posted in: Newsmag
Post count: 20

Hi Guys,

2 things… Thought you might be interested to see this… How fast your theme can be:

http://gtmetrix.com/reports/agentswall.com/u45BlwKi

Second Thing
I want to use the widget on a sidebar for the authors page (tag div authors box) But when I do it picks up everyone that is on my forum as an author. I only want to show User Authors and Admin not participants.

Can you direct me to the correct area to make this change. Once again thank you

agentswall.com

Joe

Post count: 1291

Hi,

You can find it here – http://screencast.com/t/OUQnmahzlh
The reference on function used is – http://codex.wordpress.org/Function_Reference/get_users

Thank you, Emil G.

Post count: 20

Hi Emil,

Due to my complete lack of ability I hereby announce myself as a complete idiot!

I have had a look and don’t have a clue what to stick in this space?

Can you tell me what to write and where?

Many thanks Joe.

PS did you see the speed results? Pretty good your theme runs like a rocket !!!

Post count: 7909

Hi,

Please make this changes: http://screencast.com/t/VMxTV30tN

'role' => ('administrator')

$td_authors = array_merge($td_authors, get_users(array('role' => 'author')));

Thanks!

Post count: 20

Hi

I have made the changes to the $td_authors and this is what I am getting

http://agentswall.com/author/admin/

Still picking up all the forum users (they are subscribers/participants)

any ideas

thanks

Joe

Post count: 1291

Hi,

Do you use a cache? if you do clear it.
If it still doesn’t work please copy the code of the file modified by you (the entire file) and paste it here, use pastebin – http://pastebin.com/ (copy-paste-submit and paste the link here), i’ll look into it.

Thank you, Emil G.

Post count: 20

Hi yes I use wp-rocket all cache cleared and problem still exists

Post count: 20

Yes I use wp-rocket, all cache cleared,

http://pastebin.com/hyMYuWvz

Thanks

Joe

Post count: 7909

Hi,

You have to replace the single quotes signs: http://screencast.com/t/cju9aHV2PfI

On your code:

$get_users_array = array(‘role’ => ('administrator'));

Replace with:

$get_users_array = array('role' => ('administrator'));

Thanks!

Post count: 20

Fantastic… YOU ARE A GENIUS !!

Many Thanks

Joe

Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newsmag’ is closed to new topics and replies.