Custom field display, ACF plugin
-
hello, I am using ACF plugin to create 1 custom fields and using the Post Category Image With Grid and Slider plugin, I have successfully created 1 fields, name and slug is “all”. I want to combine it to display it on the homepage, how?
here is the shortcode i used[pci-cat-grid design=”design-7″ columns=”4″ show_desc=”false” img_wrap_height=”130″ limit=”16″ orderby=”term_id” parent_id=”7814″]
I tried editing the file at the following path:
wp-content -> plugins -> post-category-image-with-grid-and-slide-pro -> templates -> Designs -> Design-7.php
and here is the snippet I edited:<?php } if( $show_count && $category_count ) { ?> <span class="pciwgas-cat-count"><?php echo $category_count; ?>/<?php get_field('all'); ?></span> <?php }
But the result displayed is not what I want, it only shows the single “/” sign, can you help me to display it,or my end purpose is to display total number of posts in 1 category (Including published posts, draft posts..)
Do you have another solution?
- The topic ‘Custom field display, ACF plugin’ is closed to new replies.