• 1. – Hello, i’m building a used cars classifieds page so i need to display some info like brand, year, model, price on the ad display in the ads list.
    Here’s an example of something similar: https://pasteboard.co/IU8fLc1.png how could i do this with your plugin ? i have the custom fields add-on installed if that helps.

    2.- Also how can i make it so that the ads don’t say “Adverts auto draft”.

    Thanks in advance !

    • This topic was modified 4 years, 9 months ago by manuelzv.

    The page I need help with: [log in to see the link]

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

    (@gwin)

    Hi,
    1. right now to insert additional information on the page with [adverts_list] you would need to customize the wpadverts/templates/list-item.php template file.

    The data saved in custom fields you should be able to display using the code below

    
    <?php echo esc_html( get_post_meta( get_the_ID(), 'CUSTOM_FIELD_NAME_HERE', true ) ) ?>
    

    2. the “Adverts Auto Draft” shows because you seem to have the default title deleted using custom fields editor.

    It is best to use the default title field (as it will be used in the URL and the page title), but if for some reason you do not want to use, then you can also hide it in list-item.php template file.

    BTW. If you will be customizing the list-item.php template then please consider creating a child template file as explained here https://wpadverts.com/documentation/child-themes-and-templates/ so your changes will not be overwritten on WPAdverts update.

    Thread Starter manuelzv

    (@manuelzv)

    Thank you for your response !

    Plugin Author Greg Winiarski

    (@gwin)

    Sure no problem :), if you will have any other questions feel free to post on the forum, in the meantime i am marking this thread as “resolved”.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Customizing ads list’ is closed to new replies.