How to define the number of "Recent Posts" displayed in the sidebar (Wordpress)?
I would like to limited the recent posts to 3 or 5. Where can I define the number of displayed recent posts? ...
I would like to limited the recent posts to 3 or 5. Where can I define the number of displayed recent posts? ...
i have a category named news and many subcategories inside it. What i wanna do is to get only 1 posts(newest) from each of those sub categories(including category title, post title, attachment image). Is there any suggestions friends?? ...
Hi all, I have three pages on my site. Let's call them home, page2, and page3. My 'home' page is set as a static front page. My 'page2' is set up as the blog page. What I want is the following: I want page2 to display blog posts with a certain category (of which ID is known). AND I want page3 to display blog posts with a certain c...
This a template page in my wordpress (have removed html), it pulls out the posts from my wordpress database. I want to paginate it but have no idea! :( I wan't to get something like this << First Prev 1 2 3 4 Next Last >> <?php $postslist = get_posts('numberposts=10&order=ASC'); foreach ($postslist as $p...
Hi there, I have an events category which is searchable by a sub-category (by city where the event is being held). I have the 'The Future is Now!' plugin to allow me to publish future dated posts but hoping that I can set up a paginated template that, when a post 'expires' it will no longer show up in the loop/archive. I'm also wonderi...
I need to somehow make single posts/pages for comments. So i can show the comments as separate pages with there own permalinks. So that users can access theese pages in browser with the comment page permalink. Thankful for help! ...
Hi all, I have a page in Wordpress that displays posts with a category of "newspaper" only. Now, The posts are ordered by descending order (I think, if that is the default), such that the newest is at the top. This is the code that I have: <?php $my_query = new WP_Query('category_name=newspaper&posts_per_page=-1'); ?> <?php if (have_...
I'm using this plugin http://watershedstudio.com/portfolio/software-development/wordpress-category-posts-plugin/ that uses this php works just fine but it lists the category posts alphabetically - how can i list them so that the newest ones are listed first? ...
How to make post unremovable? So, even admin will not have the abillity to delete it. ...
Hi, I'm having a site which has option to add hotels and restaurants. Both for them has different custom fields which i have added meta boxes with a plugin. But the custom fields of hotel are not needed for restuarant and vice versa. So what I want to achieve is create extra menu on admin panel saying Add Restaurant & Add Hotel. When c...
I'm trying to create directory listing in which at the top there will be links...from a-z some what like this: A B C D E ...............V W X Y Z When a user presses on A, all the posts with titles starting with A should come, whats the best approach to achieve this? ...
Hi, I only want to return the latest 2 posts but my code returns all the posts, any idea how I can fix this? Code below, Thanks, R. <?php $postslist = query_posts('posts_per_page=2'); foreach ($postslist as $post) : setup_postdata($post); ?> <div class="post"> <?php the_date('d/m/y', '<div class="date">', '</div>'); ?>...
I have a small network of sites setup with WordPress 3.0's multisite feature. I would like to create another site which pulls certain posts from the various other sites to display. This new 'hub' site would seem like its own separate site to the user (with domain mapping), but its content is coming from the posts from the other sites. H...
How to hide, sub categories posts on parent category? Like: about us ---- under1 ---- under2 if select about us, posts from under1, under2 are showed. How to fix this? ...