twowarm
Forum Replies Created
-
Forum: Plugins
In reply to: [Wp Subcribe Author] Display subscribed authors' posts on a specific pageglobal $wpdb; global $current_user; $table_name = $wpdb->prefix . "wpsa_subscribe_author"; get_currentuserinfo(); $post_author_id = $current_user->ID; $subscribers = $wpdb->get_results($wpdb->prepare("SELECT author_id FROM $table_name WHERE subscriber_id = %d AND status = %s", $post_author_id, 'active')); foreach ($subscribers as $subscriber) { $a = array($subscribers[0]->author_id); array_push($a, $subscriber->author_id); print_r($a); } $the_query = new WP_Query(array('author__in' => $a)); if ($the_query->have_posts()) { while ($the_query->have_posts()) : $the_query->the_post(); ?> <li> <h3><a href="<?php the_permalink(); ?>"><?php echo wp_trim_words(get_the_title(), 14, ""); ?></a></h3> <> <?php endwhile; wp_reset_postdata(); }The array is :
Array ( [0] => 3688 [1] => 3688 ) Array ( [0] => 3688 [1] => 3692 ) Array ( [0] => 3688 [1] => 3691 ) Array ( [0] => 3688 [1] => 73 ) Array ( [0] => 3688 [1] => 3687 )How do I change it to:
Array ( [0] => 3688 [1] => 3692 [2] => 3691 [3] => 73 [4] => 3687 )
Forum: Reviews
In reply to: [Wp Subcribe Author] Does Exactly What is Needed, Nothing Fancycan you show all the post of the authors you follow on a page?
Forum: Plugins
In reply to: categories don't switch language in editorAnd by editor, i mean the post editor page.
Forum: Plugins
In reply to: categories don't switch language in editorI use qtranslate. please help.
Forum: Plugins
In reply to: search formthe search result is like this: http://itransl.com/?s=9eab94f60d&formid=3321&skeyword=+First+Avenger+&wqsfsubmit=Search&lang=+echo+qtrans_getLanguage%28%29%3B+
Forum: Plugins
In reply to: [Advance WP Query Search Filter] Display Search Results on a Specific PageWhy doesn’t <?php echo qtrans_getLanguage(); ?> work?
Forum: Plugins
In reply to: [Advance WP Query Search Filter] Display Search Results on a Specific Pageecho '<div class="awqsf_box"><p class="awqsf-button"><input type="submit" id="awqsf_submit" value="'.$options[0]['button'].'" alt="[Submit]" name="wqsfsubmit" title="Search" /></p></div>'; echo '<input type="hidden" name="lang" value=" <?php echo qtrans_getLanguage(); ?> ">'; echo '</form>';the search result is like this: http://itransl.com/?s=9eab94f60d&formid=3321&skeyword=+First+Avenger+&wqsfsubmit=Search&lang=+echo+qtrans_getLanguage%28%29%3B+
Forum: Plugins
In reply to: [Advance WP Query Search Filter] Display Search Results on a Specific PageWell I have to disable normal WP search and replace it with awqsfsearch
Forum: Plugins
In reply to: [Advance WP Query Search Filter] Display Search Results on a Specific Page<?php //if(wp_verify_nonce($query->query_vars['s'], 'awqsfsearch') ) {} if($_GET['formid'] == '3267'){ include 'search-movies.php' ; } if($_GET['formid'] == '3268'){ echo '3268 search results'; } else{ include 'searchbackup.php' ; } ?>First, it uses custom results template. Then, it uses normal wp results template. Why? Please help.
Forum: Plugins
In reply to: [Advance WP Query Search Filter] Display Search Results on a Specific PageNever mind. I nailed it.
Forum: Plugins
In reply to: [Advance WP Query Search Filter] Display Search Results on a Specific PageWhat do you mean by Try to remove if(wp_verify_nonce($query->query_vars[‘s’], ‘awqsfsearch’) ){} check.
Forum: Plugins
In reply to: [Advance WP Query Search Filter] Display Search Results on a Specific Page<?php if(wp_verify_nonce($query->query_vars['s'], 'awqsfsearch') ) //this will verify that the search is from the plugin { if($_GET['formid'] == '3267') { //include 'search-movies.php' ; //template for your form with id = 3267 //get_template_part( 'content', 'museumsearch' ); echo 'movie search results'; } } else{ echo 'normal wp search results'; //get_template_part( 'content', 'search' ); } ?>I use the code above. The search results page always shows ‘normal wp search results’.
It just doesn’t work.
Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] The search button doesn't respondI’m changing it to another plugin, which allows me to have filters and search results on the same page. Thank you anyway.
Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] The search button doesn't respond[ULWPQSF id=3252 button=0] no results show up.
Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] The search button doesn't respondIt doesn’t work at all. Please help.