• Resolved nmccainjr

    (@nmccainjr)


    Hello,

    Using the Custom Fields addon, is there a way I can put a field any place on the display page? Right now it’s putting on the top of the page under the location field.

    Thanks
    Norman

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    to do that you would need to customize the the wpadverts/templates/single.php template file.

    For example if you have a field named ‘education’ you would need to put in the single.php the code below

    
    <?php echo esc_html( get_post_meta( $post_id, 'education', true ) ) ?>
    

    Then in the place where you added the code value of an ‘education’ field will be displayed.

    Note the changes in single.php will be overwritten on WPAdverts update, to avoid that you should create a child-template file for the single.php as explained here https://wpadverts.com/documentation/child-themes-and-templates/

    Thread Starter nmccainjr

    (@nmccainjr)

    Thanks Greg

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Fields addon’ is closed to new replies.