show more from author only for some categories

Posted in: Newspaper
Post count: 17

Hi there,
I searched the forum for a solution but so far couldn’t find it.
I want to show More from Author tab only for some categories (lets say Category A), but hide for others (Cat B,C,D,E). Similarly, I want to hide related articles for this Category A but show for B,C,D,E.

Thanks in advance.
Cheers

Post count: 22421

Hi,
In order to make these changes, you will have to modify the theme files and add conditions to the code. It will require a bit of php knowledge. You can use this function: https://codex.wordpress.org/Function_Reference/is_category and create a condition in http://screencast.com/t/a6tyq8u0W0z
I hope this helps.
Thanks.

Post count: 64

Hi,
Im also interested in a solution of this, can someone provide a code to put in? It would be great!

Post count: 22421

Hi,
Unfortunately there is no easy solution we can provide for this. you will need php knowledge to create the code for it. The code is located in the file I pointed above and you have to change it’s functionality so it can detect the categories. If you do not know php then we recommend hiring some help as we cannot offer any customization services at the moment.
Thank you!

Post count: 5

Hello,

is possible to only display the author in the posts we choose?

Also – We have several authors but only 2 editors, and the name that appears is the editor and not the author, how can we put the author nome instead of the editor?

Thank you very much

Elsa

Post count: 22421

Hi,
Unfortunately there is no ticker to show or hide authors. It can be done with css though if you wish to hide the author on a post. Every post has a unique ID and you can target a particular post like so:
.postid-311 .td-post-author-name{
display:none;
}

You can get the post id like so: http://screencast.com/t/xY84kmkwiS
The author of the post can be changed from the bulk edit sectiopn of wp: http://screencast.com/t/vAj4AiBq
Thank you!

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