• Good day, Greg

    I received a site for temporary care with your great plugin, I have a couple of problems and I’m desperate to solve them.?

    1) When creating an ad with the yoast SEO plugin, breadcrumbs are created with a structure related to the advert category, the page of which I cannot change

    https://ibb.co/YhqYrcT

    The main problem why this bothers me is that my Neve theme makes ads from the Advert page like a blog post, with a summary and More buttons, which doesn’t make me happy.

    https://ibb.co/2MhWPYr

    Using the Permalink plugin, I was able to set up a forced redirect, but the Yoast breadcrumbs still display advert, can you tell me if I can force this link to be corrected?

    I saw that you are preparing a Multiverse addition, but for now I need to somehow get out of the situation, I will be glad for any information

    2) Please, tell me how to correct the contact information that is displayed at the click of a button. Instead of mail and phone, I would like to make one field where the user could put any value, be itundefined phone number or link in messenger/social network.?

    Thanks in advance for your answer.

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

    (@gwin)

    Hi

    1) the Multiverse extension will not help here i am afraid (as it has a different use case), the best solution here although not the easiest would be to:

    Go to the wp-admin / Classifieds / Options / Core / Types panel, edit the Adverts Categories taxonomy, select “Rendering” tab and in the “Renderer Type” select “None”.

    The second step would be to create in your current (child) theme directory a taxonomy-advert_category.php template file as explained here https://wpadverts.com/doc/child-themes-and-templates/ in the “Custom Taxonomy Template” section.

    2) this is possible but only if you are using the plugin in the new Blocks mode, in this case you can add the code below in your theme functions.php file

    add_filter( "wpadverts/block/get/contact/reveal/options", function( $args, $post_id ) {
        $args = [];
        $args["custom_contact"] = [
                "icon" => "fas fa-envelope",
                "label" => __("Custom Contact", "wpadverts"),
                "template" => '{value}'
        ];
        return $args;  
    }, 20, 2 );

    Now the “show contact information” box will show only the text entered in the “custom_contact” field (you can add this field using Custom Fields editor or if you already have a different field replace the custom_contact in the code above with your field name).

    Thread Starter ponzi99

    (@ponzi99)

    Thank you so much, Greg!
    Everything worked out with the second point, but in the first I just can’t find the file responsible for the taxonomy (there is no archive.php or taxonomy.php in this topic, everything is arranged somehow differently)

    Plugin Author Greg Winiarski

    (@gwin)

    Unfortunately this varies from theme to theme, i am not familiar with Neve theme but it appears that you can use content from the neve/single.php or page.php file in your taxonomy-advert_category.php file.

    BTW. Are you using the latest WPAdverts version? I installed the Neve theme to test it and the Advert Category pages seem to be showing correctly for me without doing any changes?

    Thread Starter ponzi99

    (@ponzi99)

    Yes, Greg, I have the latest version from February 2024.
    Thanks for the tip about the file, I’ll try that.
    Do you mean that ads are displayed correctly when navigating to the /advert taxonomy (that is, the theme does not treat them as posts)?

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,

    yes, the taxonomy page shows with the same layout as the default page with list of ads.

    For reference the theme i am using is this one https://www.ads-software.com/themes/neve/, not sure if it is the same Neve theme as you are using?

    Thread Starter ponzi99

    (@ponzi99)

    Greg, sorry for not being able to respond in a timely manner, was on a business trip. I wanted to thank you for the support you have given me. I have not yet resolved this issue with Neve, apparently there is something in the recording settings. Thank you so much for your responsiveness and wonderful product!

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,

    ok thanks for the feedback, if you will need some additional help with the integration, you can let me know in this thread.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Questions regarding permalinks and changing contact information in an ad’ is closed to new replies.