Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
RobGas
tagDiv Member

Also, will future versions of Newspaper resolve this issue? It is really a feature that should be part of the theme

RobGas
tagDiv Member

Hi Calin

How many hours would it take for you to provide the customisation needed? Can someone provide me a quote?

Cheers
Rob

RobGas
tagDiv Member

No worries Calin.

I will leave my latest code in pastebin in case someone finds this thread and needs help with the same thing.

This code is placed in the tdb_single_author.php file.

https://pastebin.com/R9uzheLa

RobGas
tagDiv Member

I worked out a way to do it through the SLUG, but if you can simplify this code at all that would be great.

https://pastebin.com/58Smu4qy

It replaces the single line of code that is in the ‘else’ from the pastebin. The original code is from tdb_single_author.php

RobGas
tagDiv Member

Hi. I added the code you suggested to tdb_single_author.php but found the result of the count was always 1. So needed to use $coauths = get_coauthors(***post ID***);

However, I can’t figure out how to get the post ID!

If I use $post->ID I get the ID of the template, not the ID of the parent post.

Any ideas?

Thanks.

Viewing 5 posts - 1 through 5 (of 5 total)