Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Has anyone had any luck finding a work around for this yet? I’m searching and trying what I can, really hate to downgrade all of my sites.

    Thread Starter msmgking

    (@msmgking)

    Solved it, just had to keep working on it!

    In case someone else may want to do something similar I’ll post the solution below.

    else {
       		global $wp_query;
    		$postid = $wp_query->post->ID;
            echo get_post_meta($postid, 'custom-field-name', true);
    		echo " [...]";
            echo "<p class='readmore'><a href='";
            the_permalink();
          echo "'>"."[Read More]</a>";
          echo "</p>";
       }
    }
    ?>

    The parts added/modified from what I was working with and previously posted:

    global $wp_query;
    $postid = $wp_query->post->ID;
    echo get_post_meta($postid, ‘custom-field-name’, true);

Viewing 2 replies - 1 through 2 (of 2 total)