vezecs
Forum Replies Created
-
P.S. On the admin user it’s all ok, but on the new users i can edit the other fields and add what characthers i want..
I see on admin if i add on first name “<?php etc” it gets removed automatically but on other users it remains.Forum: Plugins
In reply to: [Contextual Related Posts] Display different output for pages and posts.Other question, how can i use offset on related posts ? Because i have to display the first 4 related posts to a post and after some text i want to display the rest of those related posts ( let’s say another 6 related posts ) so the code must be something like
...$args = array( 'post_types' => $post_types, 'offset' => 4 )..but it doesn’t work .. Hope it can be done somehow…I managed to make it work with this code
<?php $keyword = 'test the post'; $args = array( 's' => $keyword ); query_posts($args); global $wp_query; $total_results = $wp_query->found_posts; echo $total_results; wp_reset_query(); ?>Thanks for this great plugin ! BEST !
Sorry for responding after so long time but i’ve tested this code and doesn’t work.. I want to give the
$search_querya value and see how many posts are found like on the search page.Exemple: I did a page some-search.php where I added the
<?php include( "/home/wp-load.php" ); ?>and here i want to give $search_query = ‘some keyword i want search’; and get the results found with that value.In the search.php it works with
$wp_query->found_posts;but here i can’t make it work…I have tried with this code on my single.php
<?php $s = 'Hello World'; echo get_bsearch_results( $s, $limit ); ?>
but it shows all the posts i have on my site, it doesn’t show the same posts like it was on the search page.I’m using the seamless integration it’s all ok. I want to use the search results for a given keyword on my single.php page. Like a “similiar posts” plugin. Let’s say i’m on page “Hello world”, i want to show 4 posts on my single.php from the “search_query” “Hello World” (but i want those posts to be the same like on the search page). I want to know what is the loop code.