Hello @bettina,
Already did so as I mentioned earlier https://prnt.sc/lIRSr8zaXrQK but it does not work even though the article has primary the category I am showing.
Not really interested in the category cloud template to be honest as our categories do not have so many visits.
Regards,
O
Hello @bettina,
Thanks for the update on this issue. Do you have an ETA on this issue as it affected the ux of our users on some case?
How do we do this?
“Please set the new cloud template in the theme panel too.”
@tdaplyn we use multiple categories as well, the correct ones are the primary but the system still refuses to show the correct template to that category.
Regards,
O
Hello @Bettina,
Sorry @tdaplyn for intercepting your conversation but we have a similar issue.
@Bettina I used your instructions on your last post https://prnt.sc/lIRSr8zaXrQK but Global post template remained as the category’s template https://prnt.sc/uEHZa0Cvp7oI
Can you help with this?
Regards,
Onisiforos
Hi Catalin,
I always update the them through SFTP.
After two minutes of investigating the issue I have found that you had some ifs going on above the foreach. I added and if statement above the foreach which checks if the $classes varialble isset and not empty and the warning have been elimninated.
File: Newspaper/includes/wp_booster/td_wp_booster_functions.php
Line: 1019
Above this line foreach ($classes as $key => $value) { I added if(isset($classes) && !empty($classes)):.
Below this line return $classes; i added endif;
Please check if this is the correct way of fixing this warning and let me know.
Thanks
Hi Bogdan,
Thank you for your reply.
All the best!
Hi Bogdan,
I think I may have found the solution
in the td_module_single_base.php file in the /includes/wp_booster directory
I change the following
return $td_smart_list_obj->render_from_post_content($smart_list_settings);
to this
if($td_smart_list['td_post_template'] == 'single_template' || $td_smart_list['td_post_template'] == 'single_template_2' || $td_smart_list['td_post_template'] == 'single_template_9'){
$content = $td_smart_list_obj->render_from_post_content($smart_list_settings);
}else{
return $td_smart_list_obj->render_from_post_content($smart_list_settings);
}
and it seems to work just fine.
Could you please confirm that this is the right way to go?
Thanks
-
This reply was modified 10 years by
Onisiforos.
Hi Bogdan,
Unfortunately this not an option due to the fact that I am not the one writing the article but around 50 people. It’s hard to explain to each one of them that they have to do this each time they write a smart list article.
As I saw in the code of wp_booster and more specific the get_content function. if a post is a smartlist the function returns the smart list so the parts that are being used in order to display the ad are not executed therefore they are not displayed. is there a way where the ads are executed and returned with the smart list?
Hi Bogdan,
Sorry for bothering you again however the solution you provided it’s not suitable for our needs.
We would like the ad to displayed below the featured image of the post not below every slide in the smart list.
Please see this link in order to understand better our needs
http://studentlife.com.cy/2016/05/03/quiz-mathe-ton-typo-sou-otan-psonizis/
Thanks
Hi Bogdan,
The thing is that we need the ad to be display below the featured image not at the start of the smart list.
Same as here
http://studentlife.com.cy/2016/05/03/quiz-mathe-ton-typo-sou-otan-psonizis/
Furthermore, what is the ad location id for the Article Top ad and the Article Bottom ad?
Thanks.