Viewing 1 post (of 1 total)
  • Author
    Posts
  • #6011
    AlexP
    Participant

    Hello,
    When i am using automatic method everything works ok. But when i try to add it manually on a custom page template i got shortcode [post-views]show and not the data .

    When i call it via function it shows only number and not the eye icon.

    Here is my page template code.

    <div class="entry-content-cnt">
    	<div class="entry-content">
    
    		<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr(sprintf(__('Permalink to: %s', 'ci_theme'), get_the_title())); ?>">
    			<?php the_post_thumbnail('ci_listing_thumb'); ?>
    		</a>
    		<?php ci_e_content(); ?>
    
    	</div>
    </div>
     <div class="entry-desc">
    
    	<h1><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr(sprintf(__('Permalink to: %s', 'ci_theme'), get_the_title())); ?>"><?php the_title(); ?></a></h1>
    
    	<div class="entry-meta group">
    
    	
     <?php echo do_shortcode('[post-views]');?>
    		<?php li_display_love_link(); ?>	
    			<a class="entry-permalink" href="<?php the_permalink(); ?>" title="<?php echo esc_attr(sprintf(__('Permalink to: %s', 'ci_theme'), get_the_title())); ?>"><?php the_title(); ?></a>
    
    	</div>
    
    </div>
    

    My php knowledge is very low so if someone can help me out please explain with code example.

    Thanks

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.