coauthor plugin code issue

Posted in: Newsmag
Post count: 7

What files should I touch to show the multi-authors from coauthor plugin? (Newsmage)

Post count: 35449

Hi Optimyz,

Unfortunately we do not have a guide for how to do it in Newsmag theme, only for Newspaper theme, but the changes should be quite the same, please check our tutorial for adding multiple authors to your articles, the loop-single.php file and single_template_1.php can be found in wp-content/plugins/td-composer/legacy/Newsmag/parts/single/loop-single-1.php -> https://i.imgur.com/k5BRPPU.png these need to be change in order to display multiple authors.

Hope this will help you!
Thanks.

Post count: 7

Hi Calin,
Thanks, this is helpful. But I got a strange situation.
I have renamed loop-single.php to loop-single.hph, but the webpage is still working.
I have flushed the host cache. Do you know why can it work without loop-single.php?

Thanks

Post count: 35449

Hi,

If the page is rename/change in child theme then the theme will take the loop-single.php from tagdiv composer or theme itself.

Thank you!

Post count: 7

Got it, thanks.

Now I found, the loop-single.php from tagdiv composer is the only source.
The file in the theme and the child theme are not working event the one in tagdiv composer is lost.

I suggest highlight this behavior in somewhere your document, and, update your theme and plugin to follow the child theme working rule.

Post count: 35449

Hi Optimyz,

If you set these file in child theme, make sure that you are using the child theme from the Newsmag v4.9.1 because there were some changes in the theme core, therefore the child implementation need to be change too to can work with the theme, therefor if you set the single-post.php files inside the child, this need to be set in parts/single folder like this -> https://i.imgur.com/VKJBqPA.png ( also you need to copy the post-loop-x.php and single-loop-x.php for each post style, n is the number of the post style).

Thank you for your understanding!

Post count: 7

Great! And the child theme is copied from the theme package 4.9.1.
But I tried,
1. Newsmag-child/loop-archive.php works.

2. Newsmag-child/loop-single.php not working
3. Newsmag-child/parts/loop-single.php not working
4. Newsmag-child/parts/single/loop-single.php not working

5. only wp-content/plugins/td-composer/legacy/Newsmag/loop-single.php works

Maybe we need a different path?
Thanks.

Post count: 35449

Hi,

Ok, lets start again, if you want to use in child the default post style , then you need to set from wp-content/plugins/td-composer/legacy/Newsmag/ the single.php and loop-single.php files in wp-content/themes/Newsmag-child/loop-single.php/single.php like this -> https://i.imgur.com/jtcKMhz.png
So the key is to copy both files for the post templates.

Let me know the results!

Post count: 7

Great! Thank you very much.
Please let me confirm the whole process.

1. Copy single.php & loop-single.php
FROM wp-content/plugins/td-composer/legacy/Newsmag/
TO wp-content/themes/Newsmag-child/

2. Copy loop-single-1.php & single_template_1.php
FROM wp-content/plugins/td-composer/legacy/Newsmag/parts/single
TO wp-content/themes/Newsmag-child/parts/single

3. Modify the files copied to the chiled theme.

Thanks

Post count: 35449

Hi Optimyz,

All the steeps made are correctly, just make sure that you have the child theme activate and you are using the default post style or post style 1.
If there is still a problem, just let me know!

Thank you!

Post count: 7

Thanks, I got a problem about the child theme.
On the Dashboard, when I click Appearance->Theme, the respond is 404.
“Ooops… Error 404”
Do you know how can I fix it?

Post count: 18283

Hello !

You will have to check your files because that means you have done something wrong in your theme files. If not, try and re-install the child theme.

Thank you !

Post count: 7

Thanks, but I tried as below,

1. Removed the child theme folder (Newsmag-child), then click the Appearance->Themes. We got 404.
2. Recreate Newsmag-child, copy style.css and functions.php from the Newsmag-child folder in the theme package. Same result, 404.

Any idea?

Post count: 35449

Hi,

Please make sure that you do not have a plugin conflict with untested plugins, please deactivate all non theme/tested plugins, also if you are using child theme, clear all cache and try again.

If there is still a problem, you can send us an email at contact@tagdiv.com and provide admin login, as well as cPanel or FTP if possible. We will take a look. Include a link to this topic in the email.

Thank you!

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