0.2420 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'GOTMLS_nonce_array' LIMIT 1;
|
0.1211 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'GOTMLS_definitions_array' LIMIT 1;
|
0.1400 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'GOTMLS_scan_log/1701518334.9829' LIMIT 1;
|
0.2191 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'at_options' LIMIT 1;
|
0.1030 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'jetpack_edit_links_calypso_redirect' LIMIT 1;
|
0.1440 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'uninstall_plugins' LIMIT 1;
|
0.2589 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'woocommerce_allow_tracking' LIMIT 1;
|
0.1311 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'as_has_wp_comment_logs' LIMIT 1;
|
0.1190 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'jetpack_connection_xmlrpc_verified_errors' LIMIT 1;
|
0.1240 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'jetpack_sync_error_idc' LIMIT 1;
|
0.1252 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'classic-editor-allow-users' LIMIT 1;
|
0.1171 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'classic-editor-replace' LIMIT 1;
|
0.1190 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'jetpack_excluded_extensions' LIMIT 1;
|
0.1769 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'woocommerce_navigation_enabled' LIMIT 1;
|
0.1190 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'woocommerce_settings_enabled' LIMIT 1;
|
0.1330 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'woocommerce_show_marketplace_suggestions' LIMIT 1;
|
0.1271 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'woocommerce_myaccount_view_subscriptions_endpoint' LIMIT 1;
|
0.0899 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'wcpay_account_data' LIMIT 1;
|
0.0942 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = '_wcpay_feature_platform_checkout' LIMIT 1;
|
0.1302 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = '_wcpay_feature_customer_multi_currency' LIMIT 1;
|
0.1321 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = '_transient_timeout_wcpay_currency_format' LIMIT 1;
|
0.1872 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = '_transient_wcpay_currency_format' LIMIT 1;
|
0.0899 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = '_transient_timeout_wcpay_locale_info' LIMIT 1;
|
2.3291 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = '_transient_wcpay_locale_info' LIMIT 1;
|
0.1202 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = '_wcpay_feature_upe' LIMIT 1;
|
0.1659 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'jetpack_sync_non_blocking' LIMIT 1;
|
0.2000 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'wc_connect_debug_logging_enabled' LIMIT 1;
|
0.1199 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'wc_connect_debug_display_enabled' LIMIT 1;
|
0.0830 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'wc_connect_services' LIMIT 1;
|
0.1180 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'woocommerce_setup_automated_taxes' LIMIT 1;
|
0.1051 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'jetpack_connection_disabled_plugins' LIMIT 1;
|
0.1330 [ms]
|
SELECT * FROM wp_posts WHERE ID = 1676 LIMIT 1;
|
0.0949 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = '_transient_timeout_wcs_do_subscriptions_exist' LIMIT 1;
|
0.0930 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = '_transient_wcs_do_subscriptions_exist' LIMIT 1;
|
0.1149 [ms]
|
SELECT ID FROM wp_posts WHERE post_type = 'shop_subscription' LIMIT 1;;
|
0.1161 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'webpc_settings' LIMIT 1;
|
0.0842 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'webpc_token_data' LIMIT 1;
|
0.2241 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'medium_crop' LIMIT 1;
|
0.1421 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'medium_large_crop' LIMIT 1;
|
0.1221 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'large_crop' LIMIT 1;
|
0.1221 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'woocommerce_thumbnail_cropping' LIMIT 1;
|
0.1349 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'wcpay_multi_currency_retrieval_error' LIMIT 1;
|
0.1161 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'wcpay_multi_currency_cached_currencies' LIMIT 1;
|
0.0820 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'wcpay_multi_currency_enabled_currencies' LIMIT 1;
|
0.0799 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'wcpay_multi_currency_price_charm_usd' LIMIT 1;
|
0.1040 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'wcpay_multi_currency_price_rounding_usd' LIMIT 1;
|
0.0529 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'wcpay_multi_currency_exchange_rate_usd' LIMIT 1;
|
0.0849 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'wcpay_multi_currency_enable_auto_currency' LIMIT 1;
|
0.0789 [ms]
|
SELECT zone_id, zone_name, zone_order FROM wp_woocommerce_shipping_zones order by zone_order ASC, zone_id ASC;;
|
0.0789 [ms]
|
SELECT location_code, location_type FROM wp_woocommerce_shipping_zone_locations WHERE zone_id = 0;
|
0.0792 [ms]
|
SELECT method_id, method_order, instance_id, is_enabled FROM wp_woocommerce_shipping_zone_methods WHERE zone_id = 0;
|
0.0839 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'woocommerce_flat_rate_settings' LIMIT 1;
|
0.0682 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'woocommerce_free_shipping_settings' LIMIT 1;
|
0.0651 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'woocommerce_international_delivery_settings' LIMIT 1;
|
0.0801 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'woocommerce_local_delivery_settings' LIMIT 1;
|
0.0811 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'woocommerce_local_pickup_settings' LIMIT 1;
|
0.0560 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = '_transient_timeout_doing_cron' LIMIT 1;
|
0.0670 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = '_transient_doing_cron' LIMIT 1;
|
0.5181 [ms]
|
INSERT INTO `wp_options` (`option_name`, `option_value`, `autoload`) VALUES ('_transient_doing_cron', '1701518335.3408710956573486328125', 'yes') ON
DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`);
|
0.3171 [ms]
|
SELECT ID, post_name, post_parent, post_type
FROM wp_posts
WHERE post_name IN ('found-and-fixed-a-lingering-issue-with-the-related-posts-sometimes-not-showing-up')
AND post_type IN ('page','attachment')
;
|
0.2201 [ms]
|
SELECT wp_posts.*
FROM wp_posts
WHERE 1=1 AND wp_posts.post_name = 'found-and-fixed-a-lingering-issue-with-the-related-posts-sometimes-not-showing-up' AND wp_posts.post_type =
'post'
ORDER BY wp_posts.post_date DESC
;
|
0.3021 [ms]
|
SELECT DISTINCT t.term_id, tr.object_id
FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id =
tt.term_taxonomy_id
WHERE tt.taxonomy IN ('category', 'post_tag', 'post_format') AND tr.object_id IN (276)
ORDER BY t.name ASC
;
|
0.2050 [ms]
|
SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE t.term_id IN (47,16,21);
|
0.1600 [ms]
|
SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (276) ORDER BY meta_id ASC;
|
0.1130 [ms]
|
SELECT meta_id FROM wp_shareable_meta WHERE meta_type = 'REMOTE_ADDR' AND meta_value = '44.220.249.141';
|
0.1009 [ms]
|
SELECT meta_id FROM wp_shareable_meta WHERE meta_type = 'HTTP_USER_AGENT' AND meta_value = 'CCBot/2.0 (https://commoncrawl.org/faq/)';
|
0.1321 [ms]
|
SELECT meta_id FROM wp_shareable_meta WHERE meta_type = 'HTTP_REFERER' AND meta_value = '';
|
0.1390 [ms]
|
SELECT meta_id FROM wp_shareable_meta WHERE meta_type = 'REQUEST_URI' AND meta_value =
'/found-and-fixed-a-lingering-issue-with-the-related-posts-sometimes-not-showing-up/?replytocom=245';
|
0.4110 [ms]
|
INSERT INTO wp_shareable_hits (`MONTH_OF`, REMOTE_ADDR, HTTP_USER_AGENT, HTTP_REFERER, REQUEST_URI, last_view, wp_user, hit_count) VALUES ('2023-12',
46447, 7541, 16079, 1601, '2023-12-02 11:58:55', 0, 1) ON DUPLICATE KEY UPDATE last_view = '2023-12-02 11:58:55', wp_user = 0, hit_count = hit_count +
1;
|
0.0770 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'woocommerce_cart_page_id' LIMIT 1;
|
0.0622 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'woocommerce_checkout_page_id' LIMIT 1;
|
0.0770 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'woocommerce_myaccount_page_id' LIMIT 1;
|
0.1040 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'sharedaddy_disable_resources' LIMIT 1;
|
0.1519 [ms]
|
SELECT * FROM wp_posts WHERE ID = 1677 LIMIT 1;
|
0.0839 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'site_logo' LIMIT 1;
|
0.1190 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'woocommerce_demo_store' LIMIT 1;
|
0.1380 [ms]
|
SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE t.term_id = 105;
|
0.3030 [ms]
|
SELECT wp_posts.*
FROM wp_posts LEFT JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id)
WHERE 1=1 AND (
wp_term_relationships.term_taxonomy_id IN (108)
) AND wp_posts.post_type = 'nav_menu_item' AND ((wp_posts.post_status = 'publish'))
GROUP BY wp_posts.ID
ORDER BY wp_posts.menu_order ASC
;
|
0.3150 [ms]
|
SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (620,623,624,626,628,629) ORDER BY meta_id ASC;
|
0.1981 [ms]
|
SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE t.term_id IN (44,103,84,35);
|
0.1550 [ms]
|
SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE t.term_id = 22;
|
0.2120 [ms]
|
SELECT DISTINCT t.term_id
FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id INNER JOIN wp_term_relationships AS tr ON tr.term_taxonomy_id =
tt.term_taxonomy_id
WHERE tt.taxonomy IN ('category') AND tr.object_id IN (276)
ORDER BY t.name ASC
;
|
0.3421 [ms]
|
SELECT user_id, meta_key, meta_value FROM wp_usermeta WHERE user_id IN (1) ORDER BY umeta_id ASC;
|
0.1299 [ms]
|
SELECT * FROM wp_users WHERE ID IN (1);
|
0.1402 [ms]
|
SELECT p.ID FROM wp_posts AS p WHERE p.post_date < '2012-03-15 10:00:31' AND p.post_type = 'post' AND p.post_status = 'publish' ORDER BY p.post_date
DESC LIMIT 1;
|
0.1030 [ms]
|
SELECT * FROM wp_posts WHERE ID = 265 LIMIT 1;
|
0.1640 [ms]
|
SELECT p.ID FROM wp_posts AS p WHERE p.post_date > '2012-03-15 10:00:31' AND p.post_type = 'post' AND p.post_status = 'publish' ORDER BY p.post_date
ASC LIMIT 1;
|
0.1349 [ms]
|
SELECT * FROM wp_posts WHERE ID = 280 LIMIT 1;
|
0.1709 [ms]
|
SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (277) ORDER BY meta_id ASC;
|
0.4079 [ms]
|
SELECT SQL_CALC_FOUND_ROWS wp_comments.comment_ID
FROM wp_comments
WHERE ( comment_approved = '1' ) AND comment_post_ID = 276 AND comment_parent = 0 AND comment_type != 'order_note' AND comment_type !=
'webhook_delivery'
ORDER BY wp_comments.comment_date_gmt ASC, wp_comments.comment_ID ASC
;
|
0.2010 [ms]
|
SELECT wp_comments.* FROM wp_comments WHERE comment_ID IN (168,174,178,193,219,228,234,235,240,250,253,271,535,608,1835);
|
0.2611 [ms]
|
SELECT wp_comments.comment_ID
FROM wp_comments
WHERE ( comment_approved = '1' ) AND comment_post_ID = 276 AND comment_parent IN ( 168,174,178,193,219,228,234,235,240,250,253,271,535,608,1835 )
AND comment_type != 'order_note' AND comment_type != 'webhook_delivery'
ORDER BY wp_comments.comment_date_gmt ASC, wp_comments.comment_ID ASC
;
|
0.1850 [ms]
|
SELECT wp_comments.* FROM wp_comments WHERE comment_ID IN (169,176,180,194,221,229,237,238,243,272,538,610,1845);
|
0.2961 [ms]
|
SELECT wp_comments.comment_ID
FROM wp_comments
WHERE ( comment_approved = '1' ) AND comment_post_ID = 276 AND comment_parent IN ( 169,176,180,194,221,229,237,238,243,272,538,610,1845 ) AND
comment_type != 'order_note' AND comment_type != 'webhook_delivery'
ORDER BY wp_comments.comment_date_gmt ASC, wp_comments.comment_ID ASC
;
|
0.1040 [ms]
|
SELECT wp_comments.* FROM wp_comments WHERE comment_ID IN (232,244,1846,1847);
|
0.1941 [ms]
|
SELECT wp_comments.comment_ID
FROM wp_comments
WHERE ( comment_approved = '1' ) AND comment_post_ID = 276 AND comment_parent IN ( 232,244,1846,1847 ) AND comment_type != 'order_note' AND
comment_type != 'webhook_delivery'
ORDER BY wp_comments.comment_date_gmt ASC, wp_comments.comment_ID ASC
;
|
0.1290 [ms]
|
SELECT wp_comments.* FROM wp_comments WHERE comment_ID IN (245);
|
0.1891 [ms]
|
SELECT wp_comments.comment_ID
FROM wp_comments
WHERE ( comment_approved = '1' ) AND comment_post_ID = 276 AND comment_parent IN ( 245 ) AND comment_type != 'order_note' AND comment_type !=
'webhook_delivery'
ORDER BY wp_comments.comment_date_gmt ASC, wp_comments.comment_ID ASC
;
|
0.1230 [ms]
|
SELECT option_value FROM wp_options WHERE option_name = 'akismet_comment_nonce' LIMIT 1;
|
I found a big bug with the current version it causes the caption text to show up on the page with the HTML code around it. When I deactivate yours it all works again. I have version 1.2.03.04 and I just got an update ten minutes ago and that didn’t fix it.
I love your plugin and I hope it gets fixed soon.
Thanks Jeff, for all your help tracking down this bug. It turned out to be an issue with calling the WP function get_the_excerpt() inside my Related Post’s query loop. I have release version 1.2.03.14 with my own excerpt parsing function and it seems to work fine. If you are going to display the excerpts of your Related Posts then please update my plugin and give it a try, and let me know how it goes.
I loved the feature that displayed icons with the related posts. Why is that gone now?
There has never explicitly been any icons associated with my related posts. Sometimes competing styles in your CSS or other code can cause the Related Post Links to display differently. When was the last time you saw these icons? and what changed to make them go away?
Hi Eli. Thank you for the Related Post plugin. I am sure that eventually I will be able to tweak it into perfect behaviour, but there’s one thing I just have to ask:
What is the reason behind outputting PHP code in HTML comments – ?
How can I remove it without breaking the plugin? Thanks again.
The reason for the output is to better debug my plugin when someone reports unexpected behavior. You can remove any of the HTML comments from my code and it will not effect the performance of the plugin at all. Just delete anything in-between
<!--
and-->
.How do I translate the date in this plugin?
There is a ‘Date Format’ field in the setting. Refer to codex.wordpress.org/Formatting_Date_and_Time for more information on different formats you can use.
Really love your related posts plugin…I’m getting this nonsense at the top of each post, however, when I active it:
Notice: Undefined variable: the_title in E:\Production\SHA\web\blog\wp-content\plugins\spostarbust\index.php on line 323
I imagine its a problem on my end, but I figured I’d ask, anyway.
Thanks for reporting this bug to me. You are only seeing this NOTICE because your error_reporting is set to show E_NOTICE. None the less, this is a variable initialization issue in my code. I have just released a fix for this issue in version 1.2.4.19.
Hey there, I really love the plugin! However, it won’t show for people who are not logged into my site. Do you know why that is, and is there a way to show it publicly? Or is my site just being weird, as sites tend to do?
Thanks :)
Melissa
That does sound weird. I am not sure why it would do that on your site. It may be something in your theme or another plugin that is controlling post content depending of a visitor’s login status. If you want to give me a login I will look at the output and try to debug it for you.
They are there now! False alarm! I think the site was just catching up :D
Hi,
Nice plugin.
Just a thought though, give the plugin folder a name that relates to the plugin. While searching for this plugin in my folder, I had to dowload the plugin again to find that it is stored in a “spotarbust” folder.
Keep up the good work.
Thanks for the tip. The acronym SPOSTARBUST stood for the original long name of the Plugin in it’s first release. I cannot change the folder name once the Plugin has been accepted into the WordPress Repository.
Hi Eli,
First, I really love that you’ve put the effort into creating this plugin. I’m wondering if you have any plans to build in some additional functionality in the future. Specifically, I need to have the featured image show up along with the posts in the sidebar widget? I can’t live without that. Also, I haven’t used your widget yet, but does it add related posts to all categories, or can it be limited to the primary category. (This is a feature I need as well, so I can strategically limit which related posts appear). Anyway, thought I’d ask before I get too much further down an alternate path. Thanks!!
I do have plans to add more functionality and Featured Image is high on the list. Unfortunately I don’t have time right now and I don’t even know when I will be able to give this project more effort.
As for limiting the categories, that can be done on the setting page by globally excluding the categories you don’t want to show. I’m not sure if this is exactly what you need but that’s how it works at this time.
I checked out your site and it looks like it’s working from what I can see. If you have a certain relationship between two posts that is not represented correctly by my Plugin can you please point it out and I will look into it more.
Ok, I just looked at the test site and realized what you were talking about. I have built in filtering to keep Related Post links from being duplicated. So, you won’t see a link to a post that is already displayed on the page or already linked to from another post on the same page.
So, if the first post has chosen all of the related links, the rest of the posts on the home page can’t use them. Single pages wouldn’t have that issue so that’s why they work. That makes sense. I’m using a small set of test posts so I can’t test it properly.
Btw: I had disabled all plugins and activated one at a time to see if there was a conflict. None changed the home page results, however I’m using the wp-pagenavi plugin and when I disabled it, all posts on the home page showed no related links (not even the first post) but all showed related links on the single page. Odd.
Thanks for the update.
fantastic! i just installed it.
This is the only plug-in that have truly increased engagement at my site, users are now staying longer, clicking more items etc
Thanks A lot – it is a great help
Hello,
I have found your Related Posts to be just what I am looking for… but I wonder if there is a problem recently?
Instead of the posts that I select being displayed, the most recent posts are displayed.
Any thoughts,
Adam
At a glance it would appear that you are using the tag “slides” on all there posts, thus making them “related” by tag. A simple fix would be to add the tag “slides” to the section in the Realted Posts Settings labeled “Don’t use these Categories and/or Tags as a means of relating posts:”
If have misunderstood you problem and my solution is insufficient please let me know and I’ll take another stab at it.
Hi Eli,
Any issues recently with the plugin? On my last 3 post the “Related Posts” does not appear, since I updated to the new version this is happening. Any ideas?
1.2.04.20 is the current version of your plugin running on WordPress 3.4.2.
Thanks
It look like your theme truncates the the post on the home page in an unusual way. This is chopping off the Related Posts on long posts until you view them as a single post.
Are you using Tags? I cannot tell if any of your post have Tags because it looks like they are not displayed in that Bella theme. Am I just missing them?
Aloha, Eli
I’ve been using this plugin, but this plugin displays related posts in the order of most recent post. How to display related post randomly ? is there a script that needs to change, in order to display related posts at random ? sorry if my english bad. thanks
There is a setting for that on the Related Posts Setting page in the WP Admin. The very first option is Order all Related Post links by. Just change that first drop-down to Random and you should then see the effect you wanted on all Related Post lists (Widgets and Post Footers).
Please let me know if you have any more trouble.
I am using your related posts plugin and wish to have the plugin ignore certain post types. I see you are ignoring many other things like categories and tags. So I assume this should be easy to implement, but I have taken a look at you code and am having a difficult time locating where I could implement something like that. Can you point me to which function I could add some code to to get the result I am looking for?
Thanks,
Jesse
I ended up placing this line of code with the function SPOSTARBUST_related_links_on_posts
if ($post->post_type = ‘wpbdp_listing’) return $the_content;
Thanks for the awesoem plugin!
Good solution!
Thanks for posting this followup.
My above code had an error in it (missing ==), the below is corrected
if ($post->post_type == ‘wpbdp_listing’) return $the_content;