Sam
Forum Replies Created
-
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Category restriction inconsistentHi Mikko,
Thanks for the reply. I just tried out your suggestion, but no luck. I still get the same outcome. What makes this so baffling is how it affects some categories and not others. The closest I’ve been able to come to finding any pattern is the ID numbers, but as you confirmed, it didn’t seem like much of an explanation. It’s an oddly consistent inconsistency because even though the results are mixed, it always affects the same categories.
I don’t see any problems in the code, but your website doesn’t seem to be using Open Graph tags. You may just need to turn them on in the plugin’s settings. You can use the “debug” link above to see whether FB is seeing them for your pages or not.
In the plugin’s root directory there is a file called seofacebook.php which you’ll need to edit. Insert the following around line 321:
if (has_post_thumbnail()) { $post_thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id(), 'thumbnail'); $imageUrl = $post_thumbnail[0]; } else { $imageUrl = "https://path.to/default/image.jpg"; }
Of course you can eliminate the if statement if you don’t want to use featured images when they are available. The other thing you need to do is output the tag, which you can do by adding this code around line 352:
"<meta property='og:image' content='{$imageUrl}' />",
Forum: Plugins
In reply to: [Redirection] [Plugin: Redirection] Multisite www issueI was able to resolve this issue by adding the following lines to my .htaccess file just after “RewriteEngine On, RewriteBase /”:
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
Forum: Plugins
In reply to: [Gallery Metabox] [Plugin: Gallery Metabox] Custom Post Type ConflictGood news. I went back to try and recreate this issue on our staging server, and everything worked just fine. I was definitely able to isolate it to this plugin with the original problem, so not sure if it was just a bad install that time or what. In any case, I appreciate you taking the time to look into it; this plugin is a great resource (as is your website!).
Forum: Plugins
In reply to: [Gallery Metabox] [Plugin: Gallery Metabox] Custom Post Type ConflictHmm, strange. I’ll look into this some more and post back in a day or so.
Btw, really appreciate the plugin!