• Resolved Archie Makuwa

    (@archie22is)


    Hi guys,

    I am using WordPress Pods to display create a few additional fields on my website. I have recently added a WYSIWYG (Visual Editor) fields with the following properties:
    – Label: Testimonial
    – Name: testimonial

    I want to be able to display the field content on the front page within the loop. I have tried making use of:

    <?php
    	//get testimonial / only if it is available
    	$testimonial = get_post_meta($post->ID, 'testimonial', true);
    
    	//display testimonial
    	echo $testimonial;
    ?>

    However nothing appears. The same routine works for other WordPress Pods fields. What I am doing wrong?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Have you tried get_the_ID() instead of $post->ID?

    Also, what code are you using exactly, for the other fields that are working?

    Thread Starter Archie Makuwa

    (@archie22is)

    Hi Scott,

    Sorry for the delayed response. I have other fields in the Pods which are:
    – Plain text fields
    – Url
    – Images

    The above code worked ??

    I guess I was tired and paid very little attention to the page I was refreshing…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display WYSIWYG (Visual Editor) | WordPress Pods’ is closed to new replies.