WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Display WYSIWYG (Visual Editor) | WordPress Pods (3 posts)

  1. Archie22is
    Member
    Posted 1 year ago #

    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?

  2. Scott Kingsley Clark
    Member
    Posted 1 year ago #

    Have you tried get_the_ID() instead of $post->ID?

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

  3. Archie22is
    Member
    Posted 1 year ago #

    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...

Topic Closed

This topic has been closed to new replies.

About this Topic