rossvtec
Forum Replies Created
-
@angelo_nwl could you provide and example?
Here is what I’m trying to do.
$price = $EM_Event->output(‘price’);
But the object is empty if i try access it in functions.php
Found a fix for the edit functionality, if anyone else is running into this issue. Removing the ajax parameter (ajax=”true”) from the shortcode fixed it for me.
Here is how I fixed the issue of author showing up with the excerpt in case anyone is having the same issue.
In wp-content/plugins/relevanssi/lib/indexing.php on line 694 I changed
$comment_string .= apply_filters('relevanssi_comment_content_to_index', $comment->comment_author . ' ' . $comment->comment_content . ' ', $comment->comment_ID);
to
$comment_string .= apply_filters('relevanssi_comment_content_to_index', $comment->comment_content );
When i do the following:
add_filter(‘relevanssi_comment_content_to_index’, ‘rlv_com_con’);
function rlv_com_con($comment) {
var_dump($comment);
//return $comment;
}
I get something like this (with a space at the end, no id)
string(91) “comment_author Lorem ipsum dolor sit amet, ei liber partem hendrerit est, sanctus laoreet no pri. ”How would I use relevanssi_comment_content_to_index filter to remove comment author, do you have an example?
Is there a way to make comment author not be indexed?
So if title is “This is a test question title” and you search for “test question” nothing comes up, or if you search and part of that post it doesn’t come up as if it didn’t get indexed. However a post before it or after it comes up in the search fine if you search for it.
Also another thing i noticed. If i search for a string congaing “the” word in results it will highlight words “the” even when “the” is part of another word (ie “other”). And I have added “the” word to the list of stop word list.
Forum: Plugins
In reply to: [User Access Manager] Set access by custom taxonomies on custom post typesAnyone has a solution?