• Resolved burhi

    (@gevv)


    Hi,

    I edited the content-loop.php file ajax load is working fine.

    problem, custom field image is not visible

    my code;

    <?php $image = get_post_meta($post->ID, 'thumb', true); ?>	
    <img src="<?php echo $image; ?>" class="wp-post-image" alt="<?php the_title(); ?>">

    html output load more;

    <img src="" alt="post-title" />

    • This topic was modified 4 years, 9 months ago by burhi.
Viewing 1 replies (of 1 total)
  • Thread Starter burhi

    (@gevv)

    Hi, working, problem solved add global $post

    <?php global $post; ?>
    <?php $image = get_post_meta($post->ID, 'thumb', true); ?>	
    
    <img src="<?php echo $image; ?>" class="wp-post-image" alt="<?php the_title(); ?>">
Viewing 1 replies (of 1 total)
  • The topic ‘custom field image is not visible’ is closed to new replies.