• Resolved M@X

    (@cityz)


    Hi!
    I have several questions for improve SEO parameters of your awesome plugin)

    Sorry, but I can’t understand how to AWPCP plugin work with WordPress SEO Yoast.

    After installing WordPress SEO Yoast I don’t see post type “classified” in settings for setup meta-tags templates.

    Meta-tags work very strange.
    For example on category “cars” (site.com/ads/browse-categories/7/cars/) we have following meta-tags:
    TITLE: Browse Categories – [Site title]
    KEYS: nothing
    DESCRIPTION: nothing
    <h1>Browse Categories</h1>

    1) Why does AWPCP use in the title and <h1> keyword ‘Browse Categories’?
    More better will be if AWPCP uses name of category:
    TITLE: Cars – [Site title]
    <h1>Cars</h1>

    2) How to make template for meta-tags?

    3) How to delete from permalinks excess words?
    Url like this site.com/ads/cars/
    better than site.com/ads/browse-categories/7/cars/

    Thank you!

    https://www.ads-software.com/plugins/another-wordpress-classifieds-plugin/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Cityz,

    The Yoast SEO plugin works very similarly with AWPCP as mentioned in this article here from our sister plugin: https://businessdirectoryplugin.com/support-forum/faq/how-to-configure-yoast-seo-correctly-for-bd/

    However, with that said, we did find some issues in 3.2.2 with SEO output and fixed them in our current dev version which you can get by contacting me here: https://awpcp.com/contact/

    Here are answers for your specific questions:

    – What is the custom post type?
    AWPCP doesn’t use custom post types, that’s why you don’t see that. AWPCP predates the availability of CPT by almost 3 years.

    1) Page title: That’s the title of the page that is used to output the content of the AWPCP ads. Your theme forces the title of the page to be output in there, it’s already set by the time the shortcode expands and we can’t change that.

    2) This is only available for custom post types, unfortunately.

    3) The URL uses the ID in it to identify the ad we’re supposed to pull. It can’t be removed, otherwise you’d break the plugin. The page slug also appears in there courtesy of WordPress’ permalink structure.

    Thread Starter M@X

    (@cityz)

    Thx for answer )

    1) I thought sow, that the problem to support previous versions. Now, of course, will be better create additional CPT for AWPCP. It will be perfect for SEO. Because without good optimization site traffic will be poor ((

    Maybe it’s worth thinking about AWPCP 2.0 with custom post types )

    2) As to <h1> title I found little hack, maybe it’s will be a good decision.
    In file placeholders.php need to check post ID, and if this is the ‘show AD page’ – make title <h1>:

    function awpcp_do_placeholder_title($ad, $placeholder) {
        $url = url_showad($ad->ad_id);
    
    //*City - OldCode $replacements['ad_title'] = sprintf('<a href="%s">%s</a>', $url, $ad->get_title());
    
    //*City - New Code
    
    	if(get_the_id() == 33)
    	{
    			$replacements['ad_title'] = sprintf('<h1>%s</h1>', $ad->get_title());
    		}
    		else
    		{
    			$replacements['ad_title'] = sprintf('<a href="%s">%s</a>', $url, $ad->get_title());
    		} 
    
    //*CityEnd

    *In my case – 33 – that is ID “Show Ad Page”.

    We’ve definitely got CPT on the roadmap, but it’s a massive change so once we start on that, things will appear to stop on the plugin for awhile. That’s why we’ve held off to date.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘AWPCP & SEO’ is closed to new replies.