• Resolved hastibe

    (@hastibe)


    I am using the WP Job Manager Companies plugin, which generates a directory of companies that have job openings posted on the site (see example).

    On each individual company page, Yoast SEO is giving this message…

    <!-- Admin only notice: this page does not show a meta description because it does not have one, either write it for this page specifically or go into the [SEO - Search Appearance] menu and set up a template. -->

    …in the source and is inserting the meta properties for the site’s blog, instead of the actual title on each individual company page.

    WP Job Manager Companies is not using a custom post type to generate these pages, so it is not listed under SEO – Search Appearance and the company pages being generated are not editable (I think it might be creating these pages by pulling from a WordPress database table? See here).

    What can I do to have Yoast SEO pull the correct title or disable Yoast SEO from inserting meta properties from my blog page on these individual company pages?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter hastibe

    (@hastibe)

    In case it is helpful, here’s what the plugin is doing to generate a title (which is correct, but not being used by Yoast for its meta property og:title). Could this be easily edited so Yoast recognizes / uses it?

    	/**
    	 * Set a page title when viewing an individual company.
    	 *
    	 * @since WP Job Manager - Company Profiles 1.2
    	 *
    	 * @param string $title Default title text for current view.
    	 * @param string $sep Optional separator.
    	 * @return string Filtered title.
    	 */
    	function page_title($title) {
    		global $paged, $page;
    		$sep = apply_filters( 'document_title_separator', '-' );
    		if ( ! get_query_var( $this->slug ) )
    			return $title;
    
    		$company = urldecode( get_query_var( $this->slug ) );
    
    		$title = get_bloginfo( 'name' );
    
    		$site_description = get_bloginfo( 'description', 'display' );
    
    		if ( $site_description && ( is_home() || is_front_page() ) )
    			$title = "$title $sep $site_description";
    
    		$title = sprintf( __( 'Jobs at %s', 'wp-job-manager-companies' ), $company ) . " $sep $title";
    
    		return $title;
    	}
    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    By default, Yoast SEO Search Appearance settings page shows all the public post types. If you’re not seeing the relevant post types, it’s probably either not public or it has a special mechanism that Yoast SEO can’t detect. In this case, you may need to use custom implementation using relevant filter. You can find more information about custom implementation on https://developer.yoast.com/.

    We’re afraid to say that we are unable to confirm how exactly the custom implementation can be made.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to Disable or Modify Meta Properties of Content Pulled from Database’ is closed to new replies.