suntower
Forum Replies Created
-
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Problem With relevanssi_excerpt_content filterHi Mikko,
Not sure I understand what you mean. The function only seems to run when the index is built.
I added this bit of code to test for the page in question:
if( $post->ID == 1294 ) { dpm($post); dpm($content); }When I examine the $post parameter it looks as expected (see below). The $content parameter is an empty string of len 0.
Any ideas?
object(WP_Post)#927 (25) { ["ID"]=> int(1294) ["post_author"]=> string(1) "1" ["post_date"]=> string(19) "2016-10-20 15:04:57" ["post_date_gmt"]=> string(19) "2016-10-20 22:04:57" ["post_content"]=> string(11582) "blah, blah, blah..." ["post_title"]=> string(9) "JCHWebDev" ["post_excerpt"]=> string(154) "Marketing, Design and Web Development in Seattle by JC Harris. Reliable service. Beautiful work. Full-service agency experience at a price you can afford!" ["post_status"]=> string(7) "publish" ["comment_status"]=> string(6) "closed" ["ping_status"]=> string(6) "closed" ["post_password"]=> string(0) "" ["post_name"]=> string(9) "jchwebdev" ["to_ping"]=> string(0) "" ["pinged"]=> string(0) "" ["post_modified"]=> string(19) "2016-10-27 12:59:39" ["post_modified_gmt"]=> string(19) "2016-10-27 19:59:39" ["post_content_filtered"]=> string(0) "" ["post_parent"]=> int(0) ["guid"]=> string(34) "http://jchwebdev.com/?page_id=1294" ["menu_order"]=> int(0) ["post_type"]=> string(4) "page" ["post_mime_type"]=> string(0) "" ["comment_count"]=> string(1) "0" ["filter"]=> string(3) "raw" ["indexing_content"]=> bool(true) }- This reply was modified 9 years, 9 months ago by suntower.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] How Do I Index Custom Home Page?Thanks for the quick reply Mikko. I can never recommend the plug enough.
One follow up. I there a way to inject static links into the results?
For example, if the visitor types ‘Gallery’ into the search input I want the first search result to -always- be a custom link that I specify for that term (eg. ‘/home#gallery’ . Can I do that? If so, how?
Thanks again.
—JC
Forum: Plugins
In reply to: [PayPal Digital Downloads] Sandbox Not Working For Digital DownloadsI got this reply from Paypal:
Yes, you would need to use SSL when using PayPal API. This is the policy we added to make sure the transaction and information sent to paypal and back to your website are secure.
Here is the documentation https://www.paypal-knowledge.com/infocenter/index?page=content&widgetview=true&id=FAQ1914&viewlocale=en_US
Sincerely,
Azleen
Merchant Technical SupportAnd I tried your plug-in with our live Paypal credentials (worked fine) but then with the sandbox account, I get the above cryptic error. Any further guidance?
My Sandbox account is a different email address from the live account. Is that OK? Does the Sandbox account need to be linked to a live Paypal acct in some way?
TIA,
—JCForum: Hacks
In reply to: How Do I Set Folder For Resized Thumbnails?BTW: I dunno where one puts in a ‘feature request’ but this is one I’d like to make. It seems so obvious.
Forum: Hacks
In reply to: How Do I Set Folder For Resized Thumbnails?I suspected as much. I used the separate folder to be compatible with another guy’s plug-in. I already was using the ‘rename’ strategy as a workaround but I am running into memory issues with this bulk import (ie. the code pegs my server CPU Usage after 10 or 15 galleries get imported.) So I’m trying anything I can think of to reduce any i/o operations.
Thanks.
Forum: Plugins
In reply to: [Image Store] Gallery not appearing inside a pageTo any future travellers…
After digging a bit into the PHP, many issues of disappearing content appear to be in the default settings in Admin. I don’t wanna get too technical, but for example, if you leave the Gallery ‘Sort’ options at their defaults, this will stop the ims-gallery shortcode from working as it creates an invalid SQL Query. I hope the developer fixes this bug at some point.
In short: if you’re having problems with the ims-gallery shortcode:
a) Reset to the default settings
b) Try changing the Gallery Sort from ‘Custom’ to another option.
c) If you’re comfy with PHP, you can also look at the SQL Queries generated in shortcodes.php around line 130ish. The ORDER BY is probably incorrect.<HTH>
Forum: Plugins
In reply to: [Image Store] Gallery not appearing inside a pagePS: I’m using version 3.34
Forum: Plugins
In reply to: [Image Store] Gallery not appearing inside a pageHaving same issue. The [img-store] shortcode works fine, but [ims-gallery id=xAl33sssawhatever] never works. It’s obviously executing (the shortcode is being evaluated), but there are no images.
FWIW: Whenever I attempt to edit a Post or Page with this shortcode, the editor automatically switches to ‘Visual’ mode and displays the IMS logo. So clearly, -something- is getting executed.
How do I troubleshoot?
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Specifying Weight For Individual Pages?Hi Mikko,
I’m a bit surprised. I thought I’d want to use something like this:
add_filter('relevanssi_match', 'custom_tag_weights'); // force a given post ID to top if($match->doc == 3246) $match->weight = $match->weight * 10;…what’s the difference? Or rather, why is relevanssi_hits_filter a better solution?
Thanks,
—JC
Forum: Fixing WordPress
In reply to: What Determines Logged In Time/Setting?Thanks. I’ll investigate further. When I install a new site for a client I’d -prefer- that the cookie expire in a predictable way and I don’t think it does. Thanks for the suggestion. I’ll write a little plug to do this.
It’s odd that there is a WP php function to control this http://codex.wordpress.org/Function_Reference/wp_set_auth_cookie
…so I figured there might also be an install option.
—JC
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Bug In Admin Search For Custom Post TypesFigured it out—it was another plug that modifies the search pre_get. Not a Relevanssi issue. Sorry for the false alarm… but I appreciate the help. Your code gave me the starting point to find the real culprit.
Thanks,
—JC
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Bug In Admin Search For Custom Post TypesHi,
I did as you asked. Doesn’t do anything. ie. I don’t see the outpu of var_dump anywhere.
FWIW, something I didn’t notice before… has nothing to do with this new filter…
I enter a search term, click ‘Search’ and then it brings up the -Posts-, not the Docs. But if I immediately click the Search button -again- I get an error. “Invalid Post Type”. The address of the page in the browser is now:
…the post_type parameter has changed to ‘Array’ for some reason.
Any ideas?
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Bug in admin search for custom post typesSadly, this didn’t help me at all. π
To refresh: when I type a search term in the search box, I get only Posts, not the Custom Post Type that should be displayed.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Bug in admin search for custom post typesThanks, but then I’m a bit confused.
From the WP Admin the URL might be:
http://mysite.com/wp-admin/edit.php?post_type=docs
If I try to search for ‘information’ in a ‘docs’ post type, the URL might be:
http://mysite.com/wp-admin/edit.php?s=information&post_status=all&post_type=docs&action=-1
And this will either list an empty set -or- all posts with the search term ‘information’ regardless of the post_type.
However, if I remove the post_type parameter, the search works as expected (just searches for posts or pages)
Is there no way for me to manually type in a search URL in the WP-Admin that Relevannsi understands for custom post types?
TIA,
—JC
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Bug in admin search for custom post typesHi Mikko,
I’m having the same issue.
If I want to perform a search of a custom post type from the admin, the ?s=my_query returns an empty set.
I can live with this, but is there another parameter I can substitute which -will- work? In other words, is there a URL parameter I can type in by hand which will send the proper query to Relevanssi?
TIA,
—JC