All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - leongsam

Pages: [1]
1
I need a help ladies and gentleman, is it possible to find the top 10 most viewed post but list like

10th
9th
8th
7th
6th
5th
4th
3rd
2nd
1st

Basically what I want to do is to create a post template where it will tease readers with excerpts from the bottom of pile. Is it possible? Thanks in advance!

2
I just tested it and apparently WP_Query() is not respecting the "v_sortby" and "v_orderby" arguments. Oh well, I guess if you may want to use the code which I posted a few posts up for the recent post code as that is what I am using on my website and then use query_posts() for sorting the views.

Nope, as long i execute v_sortby views, everything below that point will follow v_sortby views. It just doesn't terminate. Thanks for your help anyway.

3
Chit-Chat / Re: The auto slider on lesterchan.net front page
« on: 25 August 2008, 08:16 »
You will not understand my code as it is custom to my website.Trial and error and you will get it.

Alright then, thanks for your help.

4
That is just an example. You can can cal v_sortby=views&v_orderby=desc using WP_Query() as well.

Nope. I tried to put in  v_sortby=views&v_orderby=desc in WP_query it returns something funny...oh well.

5
Chit-Chat / Re: The auto slider on lesterchan.net front page
« on: 25 August 2008, 08:01 »
Use a timer:
Code: [Select]
setInterval(YOUR_FUNCTION_TO_SLIDE_UP, 10000); 10,000 is in ms

Thanks Lester but my programming skill is really private limited. Could you provide a sample code with 2 containers sliding up and down automatically? Thanks!

6
In that case why not use a different variable for example $recent_posts:
Code: [Select]
<?php 
$recent_posts 
= new WP_Query("showposts=10&what_to_show=posts&nopaging=0&post_status=publish");
while (
$recent_posts->have_posts()): 
$recent_posts->the_post();
?>

<li><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a> - <?php the_time('jS F Y'); ?></li>
<?php 
endwhile; 
wp_reset_query();
?>


Hmm but the above code doesn't produces sort by views. What does nopaging=0&post_status=publish means? Also I think it's the resetting of the values of conditional properties in the default query object ($wp_query) and nothing I do after could set it back to it's original state which is sort by date whenever query_posts('v_sortby=views&v_orderby=desc') is called.

Because I had listed recent posts in my footer.php So whenever a page loaded that has the v_sortby=views, then the list of recent posts will turned to sorted by views instead, otherwise the footer.php is fine by itself.

I wonder could we call v_sortby=views&v_orderby=desc using WP_Query ?

7
Hmm.. i read somewhere that generally query_posts('v_sortby=views&v_orderby=desc') would change the main query for the page and thus will change the results of whatever statements after. That is in my case.

What's funny is wp_reset_query() doesn't reset it to it's original state in my case.

That's really strange..

8
You may want to try:
Code: [Select]
wp_reset_query(); or better still use another loop
It doesn't work. It runs all over from loops to loops, from tables to tables, even from templates to templates especially when i used it in my header template. Any other ways to control it?

9
Chit-Chat / Re: The auto slider on lesterchan.net front page
« on: 25 August 2008, 01:04 »
Thanks! That's cool! I found the code. So how do we make it slide by itself?

10
Chit-Chat / The auto slider on lesterchan.net front page
« on: 24 August 2008, 13:30 »
Hey Lester, the ajax auto changer which slides up and down on your front page, just wondering is that a plugin or just a normal ajax script? Are you able to share how is it done? Cheers!

11
Hey Lester, when I used query_posts(v_sortby=views&v_orderby=desc) for a particular query, all queries after will follow this sortby views. How do we terminate this function after a query so it doesn't run beyond the loop?

Thanks you in advance. Your plugin rocks.

Pages: [1]