Hello. Is there a way for the team to make td composer compatible with the advanced custom fields plugin? I had to roll back to default template for posts just to create custom related posts for each post with the plugin. And please don’t copy paste that message about the plugin having not been tested with the theme. I just need an honest answer on how custom fields of ACF can work with td composer.
Hi,
I tried to display an ACF shortcode in a composer page and cloud post template
– https://www.advancedcustomfields.com/resources/shortcode/
Doesn’t seem to work properly however or maybe I did not try correctly. By PHP code in theme files I have tried before and worked in all cases, but by shortcode it doesn’t work in my few tests.
Thanks, @simion. I think that is the same problem I got. The PHP way in theme files works, but the shortcode way does not work. I think the PHP code must appear in some theme file before it is rendered in the front page. I purged many old posts from my blog recently and decided to just show custom related posts. I saw a custom plugin that shows ACF as an element of visual composer https://wordpress.org/plugins/acf-vc-integrator/ and also this one https://codecanyon.net/item/wp-acfvc-bridge-integrates-advanced-custom-fields-and-visual-composer-wordpress-plugins/19622052 and was wondering if a similar thing would work for td composer.
I changed themes to accommodate this feature because it is what my readers wanted (plus it only works in default theme which does not support full width on posts and the full width also a requested feature by my readers). I will come back to the theme in future if it supports better integration with ACF plugin custom fields. I tries to create a shortcode using this code in functions.php but the output shows on top of the post (made with td cloud library templates)and outside the td rows.
<?php
add_shortcode( 'custom_name', 'footag_func' );
function footag_func( $atts ) {
$html= '';
$posts = get_field('related_posts', false, false);
$loop = new WP_Query(array('post_type' => 'post', 'posts_per_page' => 3, 'post__in' => $posts, 'post_status' => 'publish', 'orderby' => 'post__in', 'order' => 'ASC' ));
if($loop->have_posts()) {
$html .= '<div class="rel-posts">';
while ($loop->have_posts()) : $loop->the_post();
$html .= '<div class="related-post">';
$html .=''.the_post_thumbnail('td_218x150').'';
$html .= '<h3>'.the_title().'</h3>';
$html .= '</div>';
endwhile;
$html .= '</div>';
} wp_reset_query();
}
return $html;
?>
Anything new on this? Would be nice to have now that child themes are broken.
Hi,
@digitalnoisestudios Up to this point there wasn’t any testing done in this matter unfortunately. There are many priority projects in development, there simply isn’t enough time for mode.
Maybe at some point our developers will have the time to check this as well, can’t say when it will happen however. I am sorry for the inconvenience.
Hi Simion, I think it would be really helpful for ACF to work together with TagDiv Composer. =)
Hi,
It’s been nearly 3 years since the request for ACF integration was raised first. However, I can see that Tagdiv Newspaper is still lagging much behind other themes when it comes to flexibility. No one these days use your theme template nowadays and you must know that. Most the customers use CLoud Template, but still, there is no composer element developed till date to add ACF? Really strange.
Even if we want to change the code of the cloud template manually to add ACF code via a Child theme, that is also not possible.
So, ultimately, there is no integration of ACF?
Hello,
Yes, at this point the implementation of ACF in tagDiv Cloud Templates is quite difficult to achieve, and the major problem is that these settings cannot be saved in the child theme. As such, the ACF integration must be performed after each update made to the theme. For these reasons at the moment, no solution has been found for its implementation in the topic. We hope that this request will be implemented in the future because it is still on our list.
Thank you for your understanding!
