The tag has no wiki summary.

learn more… | top users | synonyms

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 ...
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? ...
4
votes
1answer
374 views

Decrease file size upload in Media

By default, I have a 2m limit of uploads. I want to decrease this number. I found out that this code: function custom_file_max_upload_size( $file ) { $size = $file['size']; if ( $size > ...
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 <= ...
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 ...
3
votes
2answers
815 views

Stop users from logging in from multiple locations

We are running a membership site. However, we have a problem with users that subscribe to our content that are sharing there login information with other people, circumventing the need for those users ...
3
votes
1answer
266 views

Restrict users from editing post based on the age of the post

How can I restrict users (based on Capabilities) from editing their published posts after a custom amount of time. For instance, a user that can publish_posts (authors) can not edit a their post if ...
3
votes
2answers
245 views

Images Missing from built in WP Gallery

My wife has a wordpress 3.9.2 site that has a ton of images spread across many galleries. Many of those galleries though, have hundreds of images. This is partly managed by the Paginated Effects ...
2
votes
4answers
313 views

Limiting the number of users

I was wondering if there is a way to actually limit the amount of users that can register to a Wordpress site? As an example, I am wanting to create a small site that will hold information for a ...
2
votes
2answers
381 views

Can I hook into user registration *before* a user is created?

I want to limit registration based on the domain associated with their email address. I was looking at the user_register action hook, but it fires after the user is already inserted, which, although ...
2
votes
1answer
179 views

Restrict access to post if it is currently being edited

On a platform with many Editors, the problem that I am experiencing is that two editors proofread the same post simultaneously (and disregarding the warning notice about someone else currently editing ...
2
votes
1answer
55 views

Comments view limited to 20 results - any way to increase to 50 or 100?

Each day I manually delete the spam posted on my blog. The comments view allows a maximum of 20 comments in the view. When I have 200 spam entries - I need to click through 10 times to get rid of it ...
2
votes
2answers
4k views

limit the words in the post content and add read more link

As you can see into the code, the routine is to display the post which has an id of 266. Now all I want is to limit the words displayed in the post content of that post. Let's say, I want to limit the ...
2
votes
2answers
267 views

Set a maximum upload count for users on a specific user role

For users with the Contributor user role, I want to restrict the total amount of images that they are allowed to upload. I found this code posted on an answer here: add_filter( 'wp_handle_upload', ...
2
votes
1answer
572 views

dynamically limit depth of wp_list_pages

I guess that this should be an easy one but I haven't yet find the proper solution. I want to limit the depth of wp_list_pages so as not to display the pages of the last level. So supposing that ...
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 ...
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: ...
1
vote
1answer
107 views

is there any limit of length on creating custom taxonomies?

I am using custom taxonomy plugin. And I have custom Post type "Product". When I am creating new taxonomy "home and garder Appliances Washin" and attaching it to Post or "Product" it's not ...
1
vote
1answer
708 views

Wordpress User Name Limitations

I need to know what the wp specifications for the usernames are. Like allowed minimum and maximum length, are special characters like ü,ö,ä,ß accepted,..? Unfortunately I couldn't find any insight on ...
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
2answers
25 views

apply_filters/do_action tag characters limit

Does apply_filters/do_action $tag name have a characters limit? Can be any problems if the tag name is way too long? I ask this because I know that WP transients have a limit of 45 characters. FYI, ...
1
vote
1answer
172 views

Limit the_excerpt in the first point (.) of the sentence

I would like to filter the function the_excerpt to stop to find the first endpoint. Ex: "This is the article summary which ends at the endpoint with a full-stop." Any idea is welcome.
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
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", ...
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 ...
1
vote
2answers
2k views

Limit the_excerpt with max of x characters

What I'm trying to do: I want to display the_excerpt, but I have a maximum of x characters the_excerpt may use, but I don't want to display a couple of characters of a word, only whole words. Some ...
1
vote
1answer
382 views

register_post_type name character limit

I need to create a new custom post type, but the issue i am having is that the name i want to give is longer than 20 characters. Is it possible to override this with a hook or filter? I tried to ...
1
vote
1answer
439 views

Limit the Excerpt field in WP-Admin in words

Is it possible to limit the Excerpt field on the post page in words? Note that I am aware that it's possible to echo the excerpt and limit it in words, but I want the field itself to limit the amount ...
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 ...
1
vote
0answers
85 views

Limit image upload

I'm trying to limit the amount of files a user can upload through the wp gallery, and i've found the following filter from this link Limit image upload to one and disable audio, video and other ...
1
vote
1answer
238 views

Is there a limit on the size of a WP page?

I have a plugin that generates a gallery of user photos. Currently, it works using img tags pointing to the user photo image. It attaches to the the_content filter. I'm experimenting with converting ...
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' => ...
0
votes
3answers
247 views

Limit blogs creation

someone knows how to limit the number of blogs creation in a wordpress multisite? (3.6.1). In the wordpress plugins repository there is this plugin, but It doesn't work, I think it's not up to date. ...
0
votes
1answer
281 views

Show ellipsis (…) only if the number of characters exceeds limit defined in substr

I'm limiting the number of characters in the title with substr. But even if the title is less than 50 characters, being shown the ellipsis (...). I would not display the ellipsis if the title does not ...
0
votes
3answers
258 views

Allowed memory size exhausted. WordPress side solution

I'm getting a well known error from the question title. The problem is, website is running on a shared server and I don't have access to php.ini file. I've set `php_value memory_limit' inside ...
0
votes
1answer
40 views

limit characters when posting from form

I have a form were users can post question on my page and I would like to limit the characters in the description part of the form. It would also be a plus if I could get a word counter to work. The ...
0
votes
1answer
634 views

How to solve Woocommerce Memory Limit

I have Woocommerce set up to run on WP multi-site with my PHP Memory Limit set to 256M in the php.ini I also have in my wp-congif.php define("WP_MEMORY_LIMIT", 128); However Woocommerce shows the ...
0
votes
1answer
66 views

Limit Loop to One Category

I am trying to limit my loop to one category. This is the loop: <?php $counter = 1; //start counter $grids = 3; //Grids per row global $query_string; //Need this to make pagination work ...
0
votes
1answer
237 views

Setting limit to posts or page creation

This is regardging to On multisite installation and setting limit to content creation by sub-site admins. I want to set a limit for posts,pages or any custom post types for any sub-site admins. So ...
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 . ...
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 ...
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. ...
0
votes
0answers
18 views

How to limit one IP to post only only comment per post?

I'm making a review website. How can I limit one IP address to be able to just post one comment on the same post?
0
votes
0answers
15 views

How to increase menu size limit? [duplicate]

After searching for answers, I am still stumped. I am not very savvy but tried creating a php.ini file, editing .htaccess file, nothing lets me go above the 85 menu item mark. It seems to be a ...
0
votes
0answers
13 views

Custom generated WordPress menu using get_pages renders the proper HTML but doesn't display all elements

I have created a menu with the hopes of listing all of the child and grandchild pages of a page (see link below) it works great except that it is cutting off the menu at about 15 children pages, most ...
0
votes
0answers
32 views

Limit to One Custom Taxonomy Selection, Including Most Used

I've got a bit of code that limits my custom taxonomy to only allow the user to select one category, by turning the checkboxes in to radio buttons. See the screenshot below for example: I need the ...
0
votes
1answer
28 views

Remove the height limit on wordpress 3.4.2

I have problems when insert images on my pages. I have a image of 1113 × 731 and I upload it to my wordpress, when I go to Add Object popup, the Full size of the image mode is of: 950 x 342. When I ...
0
votes
0answers
55 views

How to increase image by URL upload limitation

System info - wordpress multisite installation - Version 3.9.1 with following system info - RAM 69,8/128M • SQL 142 • PHPv 5.3.28 Hi Support Team, I am using a multisite installation with a ...
0
votes
0answers
45 views

How to limit the number of blogs created in a WP multisite installation?

I adapted a function from @rohmann (and with the help of David Sader) to limit the number of blogs that a user can create in a Wordpress multisite installation. The function works well, but the error ...
0
votes
0answers
10 views

Limit the number of plugins that a blogowner on a multisite can see (as can be done with the themes)

In a Wordpress multisite setup it is possible to enable some or even all themes for a specific site. Enabling all themes for a site might be overwhelming to a blogowner, especially when you have ...