Edgar Pfandler
Forum Replies Created
-
Forum: Plugins
In reply to: [Relevanssi - A Better Search] bbpress no search results for member forumbbp-private-message plugin do what it should do and doesn’t bring up search results from private groups forums.
But sorry, and thanks again for your fast support mikko.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] bbpress no search results for member forumRobin Wilson from bbpress wrote me that i should use the bbpress private groups plugin, that should make a forum complete private.
https://de.wordpress.org/plugins/bbp-private-groups/
I will try this, and give you feedback about this.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] bbpress no search results for member forumHi Mikko, the hook fire but it seems that the forum post_type is ‘forum’.
But even if i set the $request to nothing, it still returns the search result:
if ( is_array( $query->query_vars['post_type'] ) ) { if ( in_array( 'forum', $query->query_vars['post_type'], true ) ) { bhstein_error_log ("Array Forum!"); $request = ""; return $request; } } else { if ( $query->query_vars['post_type'] === 'forum') { bhstein_error_log ("String Forum!"); $request = ""; return $request; } }Forum: Plugins
In reply to: [Relevanssi - A Better Search] bbpress no search results for member forumOk, thanks. I hope there is a setting or hook to prevent this.
No, the messages still resists even if try it with standard wordpress theme
Thanks champ, seems to work now
Can i set the messages on read in the database?
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Dynamic Content with theme proOk, thanks, then i will stay with the $post_content string on lower (or should it be named higher?) priority.
Maybe you could add this to your Knowledge base too.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Dynamic Content with theme proYupp, that was the issue. It works now with the $post_content string too.
I added the priority 10 by myself because it is the suggested level from wordpress reference.So from the programmers point of view, is it better to use the lower priority with the $post_content string or should i stay with the $post->post_content?
Maybe you change your priority in the future to, let’s say 7 or so and it won’t work again? Or did i oversee something else in the chain of process?Forum: Plugins
In reply to: [Relevanssi - A Better Search] Dynamic Content with theme proSorry, that was my failure now, i was to confused with the_content
Here is the correct output from $post->post_content:
bhstein_error_log ("post->post_content" . $post->post_content);post->post_content: [cs_content][cs_element_section _id=”1″ ][cs_element_layout_row _id=”2″ ][cs_element_layout_column _id=”3″ ][cs_element_text _id=”4″ ][cs_content_seo]Preise
{{dc:term:name term=”6″}}, {{dc:term:name term=”5″}}:
1. Rang € 18,-2. Rang € 15,-Kinder unter 15 Jahren € 8,-
{{dc:term:name term=”7″}}
Kinder € 8,-Erwachsene € 13,-\n\n[/cs_content_seo][/cs_element_layout_column][cs_element_layout_column _id=”5″ ][cs_element_text _id=”6″ ][cs_content_seo]Theaterabo
Ihre Geschenkidee!Schenken Sie ein Theaterabo der Bühne um € 42,–
Das Abo beinhaltet:1 Karte {{dc:term:name term=”5″}} (1. Rang)1 Karte {{dc:term:name term=”6″}} (1. Rang)1 Karte {{dc:term:name term=”7″}} (Erwachsener)
Sie sparen 14%.
Sie erhalten das Abo bei BP .\n\n[/cs_content_seo][/cs_element_layout_column][/cs_element_layout_row][/cs_element_section][/cs_content]`Could it be that the $post_content string is pre filtered?
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Dynamic Content with theme proThere seems to be a difference:
My error log functions that i use for this put out this content for the $post_content string:
bhstein_error_log ("post_content: " . $post_content);post_content: Preise
{{dc:term:name term=”6″}}, {{dc:term:name term=”5″}}:
1. Rang € 18,-2. Rang € 15,-Kinder unter 15 Jahren € 8,-
{{dc:term:name term=”7″}}
Kinder € 8,-Erwachsene € 13,-\n\n Theaterabo
Ihre Geschenkidee!Schenken Sie ein Theaterabo der Bühne um € 42,–
Das Abo beinhaltet:1 Karte {{dc:term:name term=”5″}} (1. Rang)1 Karte {{dc:term:name term=”6″}} (1. Rang)1 Karte {{dc:term:name term=”7″}} (Erwachsener)
Sie sparen 14%.
Sie erhalten das Abo bei BP.\n\nbhstein_error_log ("post->the_content: (" . $post->the_content . ")");post->the_content: ()
It put out nothing. As i said, i wondering too!
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Dynamic Content with theme proJust for the record, here are the two results from the different calls from “the_content” in same function!:
apply_filters( 'the_content', $post_content )<p> Preise<br />
{{dc:term:name term=”6″}}, {{dc:term:name term=”5″}}:<br />
1. Rang € 18,-2. Rang € 15,-Kinder unter 15 Jahren € 8,-<br />
{{dc:term:name term=”7″}}<br />
Kinder € 8,-Erwachsene € 13,-\n\n Theaterabo<br />
Ihre Geschenkidee!Schenken Sie ein Theaterabo der Bühne um € 42,–<br />
Das Abo beinhaltet:1 Karte {{dc:term:name term=”5″}} (1. Rang)1 Karte {{dc:term:name term=”6″}} (1. Rang)1 Karte {{dc:term:name term=”7″}} (Erwachsener)<br />
Sie sparen 14%.<br />
Sie erhalten das Abo bei BP.\n\n </p>apply_filters( 'the_content', $post->post_content )<div id=”cs-content” class=”cs-content” >
<div class=”e896-1 x-section”><div class=”e896-2 x-row x-container max width”>
<div class=”x-row-inner”>
<div class=”e896-3 x-col”><div class=”e896-4 x-text”>
<h3>Preise</h3>
<p>Theatersommer, Lenziade:</p>
<p>1. Rang € 18,-<br />2. Rang € 15,-<br />Kinder unter 15 Jahren € 8,-</p>
<p>Weihnachtsstück</p>
<p>Kinder € 8,-<br />Erwachsene € 13,-</p></div>
</div><div class=”e896-5 x-col”>
<div class=”e896-6 x-text”>
<h3>Theaterabo</h3>
<p>Ihre Geschenkidee!<br />Schenken Sie ein Theaterabo der Bühne um € 42,–</p>
<p>Das Abo beinhaltet:<br />1 Karte Lenziade (1. Rang)<br />1 Karte Theatersommer (1. Rang)<br />1 Karte Weihnachtsstück (Erwachsener)</p>
<p>Sie sparen 14%.</p>
<p>Sie erhalten das Abo bei BP.</p></div>
</div>
</div>
</div>
</div>
</div>The Ajax Requests run with code: 200 OK.
No other error related to this in the consoleForum: Plugins
In reply to: [Relevanssi - A Better Search] Dynamic Content with theme proIn WordPress there happens many unsolved mysteries, i wondering every day 😉
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Dynamic Content with theme proThis is not quite understandable for me either, I have quoted the support response from Theme.co below.
It’s just that if I use the passed string with the content, the content is not revised correctly. If I do it with the post object it works fine.
The Dynamic Content tags are not being parsed like the shortcode and added to the Content of the WordPress. You are using the 3rd Party plugin that might use the Content only to search.
The the_content function only works with WP_Query object where get_post function returns the POST object where you need to use the post_content porperty like $post->post_content. If you need that to be filtered with the the_content, you can use the following code.
$output = apply_filters( 'the_content', $post->post_content );