<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Show &#34;Similar&#34; Postings</title>
		<link>https://legacy.forums.gravityhelp.com/topic/show-similar-postings</link>
		<description>Gravity Support Forums Topic: Show &quot;Similar&quot; Postings</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 15:30:38 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/show-similar-postings" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Show &#34;Similar&#34; Postings"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-similar-postings#post-108462</link>
			<pubDate>Wed, 26 Dec 2012 15:20:03 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">108462@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Neat solution: thank you for sharing your code.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>schnettker on "Show &#34;Similar&#34; Postings"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-similar-postings#post-108457</link>
			<pubDate>Wed, 26 Dec 2012 15:13:40 +0000</pubDate>
			<dc:creator>schnettker</dc:creator>
			<guid isPermaLink="false">108457@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;okay .... here comes some code. The code needs additionaly security checks! (proof the _POST Variable!)&#60;/p&#62;
&#60;p&#62;function.php (called by the javascript code)&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function AjaxSimilar(){
  //get the data from ajax() call
   $anbieter = $_POST[&#38;#39;anbieter&#38;#39;];
   $query = new WP_Query( array( &#38;#39;taxonomy&#38;#39;=&#38;gt;&#38;#39;anbieter&#38;#39;, &#38;#39;anbieter&#38;#39; =&#38;gt;  $anbieter) );
   while ( $query-&#38;gt;have_posts() ) :
	$query-&#38;gt;the_post();
	$results = $results .&#38;#39;&#38;lt;li&#38;gt;&#38;#39;.get_post_meta(get_the_ID(), &#38;#39;einsendeschluss&#38;#39;, true). &#38;#39; - &#38;lt;strong&#38;gt;&#38;#39;.$anbieter.&#38;#39;&#38;lt;/strong&#38;gt;  - &#38;#39; . get_the_title() . &#38;#39;&#38;lt;/li&#38;gt;&#38;#39;; 

   endwhile;
   if (!$query-&#38;gt;have_posts())
   {
    $results = &#38;#39;&#38;lt;strong&#38;gt;No posts&#38;lt;/strong&#38;gt;&#38;#39;;
   }
    die($results);
  }
  // creating Ajax call for WordPress
   add_action( &#38;#39;wp_ajax_nopriv_AjaxSimilar&#38;#39;, &#38;#39;AjaxSimilar&#38;#39; );
   add_action( &#38;#39;wp_ajax_AjaxSimilar&#38;#39;, &#38;#39;AjaxSimilar&#38;#39; );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Javascript (header.js.php in my template)&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$( document ).ready( function( $ ) {
   $(&#38;#39;.anbieter&#38;#39;).bind(&#38;#39;change&#38;#39;, function (){
      jQuery.ajax({
  type: &#38;#39;POST&#38;#39;,
  url: &#38;#39;http://www.gwinnr.de/wp-admin/admin-ajax.php&#38;#39;,
  data: {
  action: &#38;#39;AjaxSimilar&#38;#39;,
  anbieter: $(&#38;#39;.anbieter div&#38;#39;).find(&#38;#39;span&#38;#39;).text(),
  },
  success: function(data, textStatus, XMLHttpRequest){
   $(&#38;#39;.similarbox&#38;#39;).html(&#38;#39;&#38;#39;);
   $(&#38;#39;.similarbox&#38;#39;).append(data);

  },
  error: function(MLHttpRequest, textStatus, errorThrown){
  alert(errorThrown);
  }
  });
  });&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;In my example i build a html form with the css class &#34;similarbox&#34; and a select with advanced controller with the css class &#34;anbieter&#34;&#60;/p&#62;
&#60;p&#62;The result is visible at &#60;a href=&#34;http://www.gwinnr.de/ess-gewinnspiel-melden-2&#34; rel=&#34;nofollow&#34;&#62;http://www.gwinnr.de/ess-gewinnspiel-melden-2&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Show &#34;Similar&#34; Postings"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-similar-postings#post-108278</link>
			<pubDate>Wed, 26 Dec 2012 08:46:45 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">108278@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@schnettker, can you share your code here please for the benefit of others who may want to accomplish the same thing?  Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>schnettker on "Show &#34;Similar&#34; Postings"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-similar-postings#post-107853</link>
			<pubDate>Tue, 25 Dec 2012 18:05:08 +0000</pubDate>
			<dc:creator>schnettker</dc:creator>
			<guid isPermaLink="false">107853@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;okay ... i spend the last four hours on the problem and solved it. The trick was admin-ajax, a html Element in the form, some jquery code and a custom query in the functions.php.&#60;/p&#62;
&#60;p&#62;You can close the topic &#60;/p&#62;
&#60;p&#62;Happy holidays!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Show &#34;Similar&#34; Postings"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-similar-postings#post-107759</link>
			<pubDate>Tue, 25 Dec 2012 14:30:26 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">107759@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sure, you can watch remote fields using JS for an update, but you can't change the field code itself. All my best! Happy holidays!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>schnettker on "Show &#34;Similar&#34; Postings"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-similar-postings#post-107755</link>
			<pubDate>Tue, 25 Dec 2012 14:19:55 +0000</pubDate>
			<dc:creator>schnettker</dc:creator>
			<guid isPermaLink="false">107755@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Okay, i unterstand that there is no &#34;out of the box&#34; solution there. I try now to make my on solution and got one question: where can i modify a field with a &#34;onChange&#34; (Javascript) method?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Show &#34;Similar&#34; Postings"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-similar-postings#post-106446</link>
			<pubDate>Sun, 23 Dec 2012 11:47:56 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">106446@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Gravity Forms doesn't support showing entries in the front end of a site unless you make them WordPress posts through our Post Fields and then you could use a related posts plugin to pull in such details. &#60;/p&#62;
&#60;p&#62;If you wanted to do this without Post Fields, you'll have to custom code the PHP / SQL statements to do so. All my best!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>schnettker on "Show &#34;Similar&#34; Postings"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-similar-postings#post-106322</link>
			<pubDate>Sun, 23 Dec 2012 04:08:55 +0000</pubDate>
			<dc:creator>schnettker</dc:creator>
			<guid isPermaLink="false">106322@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry, my english isn't good. I try it again. If I start a topic in this forum, then tests the forum if there is a similar topic already. I want a similar function for my form. Use the form to send user entries for the website and I'd like to suppress duplicate entries.&#60;/p&#62;
&#60;p&#62;This is my form: &#60;a href=&#34;http://www.gwinnr.de/ess-gewinnspiel-melden-2&#34; rel=&#34;nofollow&#34;&#62;http://www.gwinnr.de/ess-gewinnspiel-melden-2&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;After the User is chosing &#34;Anbieter&#34; i would to show postings with the same &#34;Anbieter&#34; in the box below.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Show &#34;Similar&#34; Postings"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-similar-postings#post-106104</link>
			<pubDate>Sat, 22 Dec 2012 20:23:01 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">106104@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm sorry, I don't understand what you are looking for.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>schnettker on "Show &#34;Similar&#34; Postings"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/show-similar-postings#post-106084</link>
			<pubDate>Sat, 22 Dec 2012 18:03:04 +0000</pubDate>
			<dc:creator>schnettker</dc:creator>
			<guid isPermaLink="false">106084@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;i use gf to let the User populate Postings. I want to prevent them to Post &#34;similar Content&#34; (like the &#34;Similar Topics&#34; Box here). Can i use something similar to show the User (dynamicle) such Postings?&#60;/p&#62;
&#60;p&#62;joerg
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
