jerome281
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Job Manager] Expired Job to be listed into the WordPress SEO XML sitemapI thought something like this would work, unfortunately he didn’t ??
function add_sitemap_custom_items(){ $postsForSitemap = get_posts(array( 'numberposts' => -1, 'orderby' => 'modified', 'post_type' => array('job_listing'), 'post_status' => array('expired'), 'order' => 'DESC' )); $sitemap_custom_items = '<sitemap>'; foreach($postsForSitemap as $post) { $sitemap_custom_items .= ' <url><loc>'. get_permalink($post->ID) .'</loc> <lastmod>'. $postdate[0] .'</lastmod></url> '; } $sitemap_custom_items .= '</sitemap>'; return $sitemap_custom_items; } add_filter( 'wpseo_sitemap_index', 'add_sitemap_custom_items' );
Forum: Plugins
In reply to: [Yoast SEO] WP Job Manager plugin – Expired job missing from the XML sitemapI’ve tried
function wpjm_include_jobs_in_sitemap( $filter, $type ) { if ( $type == 'job_listing' ) { $filter .= ' AND post_status = "expired" '; } return $filter; } add_filter( 'wpseo_posts_where', 'wpjm_include_jobs_in_sitemap', 10, 2 );
The code seem to break the post type job_listing-sitemap.xml listing only 1 link to the /jobs page. Any tips?
Forum: Plugins
In reply to: [WP Job Manager] Expired Job to be listed into the WordPress SEO XML sitemapHi Scott thanks so much for the code, I’ve just test it and the code seem to break the post type job_listing-sitemap.xml listing only 1 link to the /jobs page. The code make sense thought it would work. I’ve find the API page https://yoast.com/wordpress/plugins/seo/api/
Forum: Plugins
In reply to: [WP Job Manager] Expired Job to be listed into the WordPress SEO XML sitemapHmm WP SEO plugin doesn’t seem to give me any answer yet. Do you know maybe an XML sitmeap plugin who support custom post type with custom post status “expire”? Keep looking around I can’t find anything yet.
Forum: Plugins
In reply to: [WP Job Manager] Expired Job to be listed into the WordPress SEO XML sitemapScott thanks for the reply, I’ve left a comment on the WordPress SEO plugin, hopefully I will get an answer soon.
Forum: Plugins
In reply to: [Yoast SEO] WP Job Manager plugin – Expired job missing from the XML sitemapMaybe the fix would be to see how can I exclude CPT’s with a custom post status ‘expired’ from the generated sitemap?
Forum: Plugins
In reply to: [WP Job Manager] Expired Job to be listed into the WordPress SEO XML sitemapI’m curious if keeping the status: expired but keep the post status publish may work?
Forum: Plugins
In reply to: [Yoast SEO] WP Job Manager plugin – Expired job missing from the XML sitemapDoes the plugin support other statuses to ‘publish’? I’m trying to enable ‘expired’ a custom post status to be listed into the xml sitemap?
Forum: Plugins
In reply to: [WP Job Manager] Expired Job to be listed into the WordPress SEO XML sitemapThanks Mike for your quick response, I’m not really sure I’m using the WordPress SEO plugin. I thought should be a way, I just need to find the right function.
Same issue, Author Highlighting: Don’t Show set for the homepage but re=”author” still displaying any solution for this?
Sure.
What happened was that I logged in using Facebook, autorizing my account. I then logged out and logged in using Twitter, then logged out.
Later that day I logged into both Twitter and Facebook directly through their sites (not my blog) within a different tab.
When I returned to my blog, it realised I was logged in with both and autorized with both too. This resulted in displaying both my Twitter username/avatar and my Facebook name/avatar at the same time.
It seems like one of the plugins needs to take priority over the other.