The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
2answers
824 views

How can I limit the number of comments per registered user per day in wordpress?

I found this code here on WPSE: global $current_user, $post; $args = array( 'user_id' => $current_user->ID, 'post_id' => $post->ID ); $usercomment = get_comments( $args ); if ( 1 <= ...
6
votes
1answer
623 views

Changing the username character limit from four to less characters

I want to create a user account on my multi-site installation of Wordpress with a username less than 4 characters. But since Wordpress has a limit of usernames at least being 4 characters, this error ...
1
vote
2answers
979 views

Limited number of paging to 10 “pages: 1 … 10”

How to limit the function of paging down to stop at number 10? Eg: pages: 1 2 3 4 5 6 7 8 9 10. function kriesi_pagination($pages = '', $range = 2) { $showitems = ($range * 2)+1; global ...
1
vote
3answers
1k views

How to limit the max number of characteres in the title that are displayed

I am following this tutorial — "Display Your Popular Posts In WordPress Without A Plugin" and want to limit the max number of characters in the title that are displayed. Also, why is the thumbnail, at ...
1
vote
1answer
394 views

Limit the number of pages created by the paging

Any way to limit the number of pages that are created automatically by paging? I would limit to five pages in all, authors, tags, categories ... Ex: "site.com/tag/news/page/5", ...
0
votes
1answer
4k views

Limiting the number of posts in WP_Query leads to unexpected result

The following is supposed to display 10 posts. Sometimes it displays 11, sometimes 12, and sometimes the desired 10 posts. It behaves the same if I swap posts_per_page for showposts or numberposts . ...
5
votes
3answers
402 views

Ability to set character limit in BuddyPress?

I would like to limit characters in BuddyPress posts to certain limit . Ex: Set it to the limit of 150 ... just like twitter's 140. Googled about it and found nothing. Does any one have Idea on this? ...
1
vote
1answer
197 views

Get latest 3 posts from multiple CPT in one query

I'm looking to create a site wide feed on my site and have multiple custom post types. I'd like to display say 3 posts from at least 3 different post types. I can get the latest 10 posts across each ...
0
votes
1answer
391 views

Limit the menu child levels under “admin > appearance > menus”

in my effort in making the WP backend as user friendly as possible, I'm looking for a way to limit the amount of child (or submenu items) of the menu(s) under "admin > appearance > menus". They idea ...
2
votes
2answers
2k views

How to limit user to publish post per day and per role?

I would like to know is there any way/Plugin to limit the user published post (in a given time span) by his role? Like this: Role A -> 1 post per day and 30 post total. Role B -> 10 post per ...
3
votes
4answers
1k views

Different number of posts in each category

I have categories driven site. I have different template for each category. I would like to set different number of posts – different for each category. Plus I would like to add proper previous and ...
0
votes
1answer
236 views

Fixed height of the_content()

I have page with news. I'm displaying them as a shortened text (300 chars limit), I'm removing any images using preg_replace() and everything looks fine, until someone uses line breaks in his post. ...
1
vote
2answers
348 views

Character Limit w/ Excerpt removes Images Why?

So I limited the amount of characters per post via the_excerpt('50') but it removes the image that I added to my post. How can I bring that image back so it shows up above the post then limits the ...
0
votes
1answer
817 views

Limit number of posts in wp loop

I am using this code to get posts of specific taxonomy. It displays 10 posts by default. How can I set my own limit? <?php $count = 1; $the_query = new WP_Query( array( 'brand' => ...
2
votes
1answer
257 views

Is there a limit on the number of attachments?

It seems there's a limit on the number of attachments of a post? I have 265 images uploaded for one of the posts (yes, I know it's quite a few), and when I want to put them into order. The result: ...