Saltar navegación

[Resuelto] Posts using same template are appearing differently

This support ticket is created hace 4 años, 7 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Este tema contiene 4 respuestas, tiene 2 mensajes.

Última actualización por AlimB3245 hace 4 años, 6 meses.

Asistido por: Christian Cox.

Autor
Mensajes
#1663193

I am trying to: show posts of a particular custom post type.. articles.. you can see CURRENT ARTICLES on this page.. enlace oculto ... you will notice that all the articles, when you click on them, appear as per this template design

enlace oculto

But not these 2...
enlace oculto
enlace oculto

Link to a page where the issue can be seen:

I expected to see: enlace oculto something like this with the featured image right aligned and the text wrapping it on the left..

Instead, I got: enlace oculto
A very enlarged featured image pushing the text below...

#1663857

Can you try these troubleshooting steps?
- Resave your site permalinks in Settings > Permalinks
- Resave these posts in the post editor screen
- Temporarily activate a default theme like Twenty Twenty and deactivate all plugins except Types and Blocks/Views
- Test again and if the posts are displayed with the proper template, reactivate your theme and other plugins until the problem returns

Please let me know the results and we can go from there.

#1664431

Hi Christian

Thanks for the update...

Did as you asked me to... disabling all the plugins didn't help much.. as it was still the same issue with the posts appearing differently

BUT changing the theme fixed the issue... using Twenty Twenty or even another CHILD THEME of the same template seemed to fix the issue..

Please advise next step to fix the issue..

Regards,
Alim

#1665651

BUT changing the theme fixed the issue... using Twenty Twenty or even another CHILD THEME of the same template seemed to fix the issue..
If the problem is resolved when the Unpress parent theme is active without a child theme, then there must be some custom code in the child theme causing a conflict. If it's code from Toolset support, I'll be glad to take a look and figure out a solution to the problem. Debugging your own custom code or another developer's custom code, however, typically falls outside the scope of support offered here in the forums - please see our support policy here: https://toolset.com/toolset-support-policy/

Some suggestions for you:

Are there any PHP template files that have a name similar to "single-article.php" or "single-post.php" in your child theme? Remove those files temporarily and test again. What is the result of this test?

Try to find any custom code that uses the Views API filter wpv_filter_force_template, which is used to modify the template applied to one or more posts. We have documentation for that filter available here: https://toolset.com/documentation/programmer-reference/views-filters/#wpv_filter_force_template

If you find the wpv_filter_force_template filter in the theme's custom code, comment out the line that adds this filter by adding two slash marks // at the beginning of the corresponding add_filter line, like this:

// add_filter( 'wpv_filter_force_template', 'your_function_name_will_be_here', 99, 3 );

Then test the posts on the front-end of the site. If the display of the posts changes, you have found the source of the problem. If not, then you know to look for the problem somewhere else. If you are unable to find the source of the problem in a wpv_filter_force_template filter, you may want to look through your old tickets here in the forum to see if any of them were related to modifying the template for specific posts.

#1665875

My issue is resolved now. Thank you!

I realised what the issue was.. the featured image was 1200px x800px instead of the 600x400 which is what the design team was asked to do.. and as the content template didn't have the image resize code or columns to control the width, the image was taking the whole width.

Apologies for the oversight.. and thanks again for the time, effort and patience..:-)..

Regards,
Alim