• Resolved amiiii

    (@amiiii)


    I installed and configured the plugin.I want to display author name and phone number on category list page.Please Help

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

    (@gwin)

    Right now the only way to do that is to add code which will display this information in wpadverts/templates/list-item.php file.

    The following code will display author name and phone number

    
    echo get_post_meta( get_the_ID(), 'adverts_person', true );
    echo get_post_meta( get_the_ID(), 'adverts_phone', true );
    

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

    Thread Starter amiiii

    (@amiiii)

    Okay will keep these things in mind.

    Thank you so much.

    I also wanted to know how can I upload picture of user/author in classifieds ?

    Plugin Author Greg Winiarski

    (@gwin)

    This is not really possible right now, for the user picture WPAdverts will use a Gravatar image associated with the user email address (similarly as WP is doing in the comments).

    If you allow only registered users to post Ads then you can use some third-party plugin which allows setting user Avatars, for example this one should work https://pl.www.ads-software.com/plugins/basic-user-avatars/

    Thread Starter amiiii

    (@amiiii)

    okay I have one more issue with payment issues.it gives fatal error while doing payments

    Plugin Author Greg Winiarski

    (@gwin)

    Is there any error message you can see? If there is can you paste the error message here? if not then can you paste a link to a page where you are having this problem?

    Thread Starter amiiii

    (@amiiii)

    https://farmvibes.com/rfq-categories/add/

    please check it.

    after posting ad when we go to payment history it shows abounded.payment is not approved.

    Plugin Author Greg Winiarski

    (@gwin)

    Hi, ohh but this is actually not a fatal error.

    When you will go to the third step in the Ad posting, you have only bank transfer method, it will load after a second with prefilled data, then you need to click “Place Order” button.

    If the user posting an Ad will not do that the Advert will show in wp-admin / Classifieds panel with “Abandoned” status, which means the user posted an Ad but in the third step did not click place order button, so the payment object was not created.

    Sometimes this status can mean that user is still filling the bank transfer form, but in most cases it means user posted an Ad but closed a browser window before clicking “Place Order”.

    Thread Starter amiiii

    (@amiiii)

    ohh okay thank you for explaining this.

    premium user see only that place ad button not free user.

    any option for that?

    Plugin Author Greg Winiarski

    (@gwin)

    I am not sure what do you mean?

    Thread Starter amiiii

    (@amiiii)

    after posting ad, ads are not showing in listing page.how to solve this issues ?

    users are not able to post any ads

    Plugin Author Greg Winiarski

    (@gwin)

    Do the ads show in wp-admin / Classifieds panel? If they do then what is the posted Ad status?

    Thread Starter amiiii

    (@amiiii)

    yes it shows in classifieds panel with pending or completed status.even if we approved ad from classified panel it didn’t show in listing page.this happens when I enabled payment method bank transfer.

    Plugin Author Greg Winiarski

    (@gwin)

    Hmm i would need to ask few additional questions, as we did not really have similar problem before

    1. When approving the Ad from wp-admin / Classifieds panel you are clicking a “Publish” button (and not “Publish (Expired)” or something like that)?

    2. After approving the Ad can you view its details page (ie. https://example.com/advert/advert-name/)?

    3. Do you have some caching plugin installed? If you do please try disabling it and see if it helps. Also if you are using some managed WP hosting like WPEngine or GoDaddy then they might be caching the page with [adverts_list] using some internal caching software, in this case you can ask their support to disable the caching for the page with [adverts_list].

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @amiiii Please do not offer anyone, even plugin authors access to your WordPress site. I have redacted your offer. Greg would get into very real trouble here if he took you up on that offer. As he knows; Greg has been supporting users here for a long time with great support.

    I’ve archived your post.

    There are many ways to get him information he needs and accessing your site is not one of them. That’s going too far.

    You get the idea.

    Volunteer support is not easy. But these forums need to a safe place for all users, experienced or new. Authors accessing your system that way is a short cut that will get them into real trouble in these forums.

    Thread Starter amiiii

    (@amiiii)

    Sorry, I didn’t know about this.I didn’t mean to put anyone into any trouble.

    okay will try step by step.will share the debug file.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘I want to display author name and phone number on category list view’ is closed to new replies.