Support » Plugin: WPAdverts - Classifieds Plugin » Custom Fields After Title

  • Resolved plusmonde

    (@plusmonde)


    Hi,
    how to add custom fields after ads title ?
    for example : rent car (state name)

    state name is a custom field

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

    (@gwin)

    Hi, this mainly depends on the theme you are using, in most cases in your theme directory you will need to create a file named single-advert.php file, copy to it content from single.php or page.php file (these files should also be in your theme directory) and then customize <?php the_title() ?> call like this

    
    <?php the_title(); echo ' ' . get_post_meta( get_the_ID(), 'custom_field_name', true ) ?>
    
Viewing 1 replies (of 1 total)
  • The topic ‘Custom Fields After Title’ is closed to new replies.