Questions tagged [limit]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
13 views

Limiting Wordpress Search function : Custom build

The website I am busy working on was built by another company that no longer supports Wordpress so I am looking for help. Below is the PHP for the search function. From the research Ive done it seems ...
0
votes
1answer
472 views

How to limit page pagination… again

I'm digging out on old question as no solution came out. How to limit page pagination I'm looking for a way to limit pages on homepage and categories (archive.php). I have around 200k posts spread ...
0
votes
1answer
17 views

How can i limit the number of posts to the most recent 6 in my query?

I have a crashing jQuery slider that i have been asked to fix. Currently it is loading 128 slides (causing crashed of course), but we only want to see 6. I tried using jQuery to remove() 7th and ...
0
votes
1answer
28 views

WPAdverts - How to limit form submission 10 per month

I currently use wpadverts plugin and wants to limit the submission to 10 submit / month. How can I do that? I think I need to make a new row like "form_submissions" in "wp_usermeta" and store every ...
8
votes
6answers
31k views

Remove more or […] text from short post

I use a theme that have a character limit for shortpost and show [...] at the end of character limit. I want to remove this, so I search for the_excerpt(); and replace with the_content(); The ...
0
votes
0answers
17 views

limit the writing of articles

Good morning, I have post types called "natura" and I want to limit the number of articles (nature) that a registered user can write. unfortunately there are no supported plugins that do this. how ...
1
vote
1answer
48 views

How to limit post of custom post status?

I have a custom post type 'Commercials' and custom post status 'Featured'. Now I want only one featured post. What I mean is right now I can make all posts as Featured, but I want only one to be ...
0
votes
1answer
580 views

Limit taxonomy terms added to a custom post type

I've created a Custom Post Type and a Custom Taxonomy. In WP Admin, how can I limit amount of taxonomy terms that are added to the custom post type? I want to add no more than one tag into the post. ...
1
vote
6answers
2k views

Increase 10 post limit per page

I am new to wordpress and coding. I created this website: http://www.psychiatryeducationforum.com/ I have six archive pages, and I am posting different posts under each category. I just realized ...
1
vote
1answer
383 views

Limit posts per author role (excluding admin) in home page

I have multiple authors in my site and want to show just one, the latest post from each one, excluding the administrators. So, if for example: admin1 has posted 4 posts admin2 posted 3 posts author1 ...
1
vote
1answer
34 views

How to only show posts assigned to current user, only in certain post types

im trying to get this code to work. in admin id like to only show posts assigned to current user, only in certain post types like: shop_order, pages, posts. But show all posts in other post types ...
0
votes
2answers
1k 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 ...
-1
votes
1answer
76 views

Can't upload files 1MB+ [closed]

I can't upload files with more than 1MB, but i haven't change any configuration. I have a lot of files with more than 5MB uploaded before, but i don't know why now i can't... The error is "Failed to ...
0
votes
0answers
12 views

Limit The Character's Length In Pirate Form's Message Field In WordPress

In my WordPress Website, I am using Pirate Forms Plugin for showing a contact form on my Website. It works fine and everything is ok. However, I want to allow my users to be able to put a limited ...
0
votes
1answer
117 views

Limit post top level categories to one

My website have many posts, ~9 main categories and "unlimited" subcategories. I'd like to force in WordPress panel that you can't choose more than 1 top level category but you can choose unlimited ...
0
votes
0answers
74 views

Set custom form limit-entries Gravity Forms

i am trying to limit a Gravity Form in my WordPress project by a custom field. This field, which is an ACF field like others on the same page, only calls a number. I am trying to overwrite the field "...
0
votes
0answers
22 views

Custom Search Not working in Specific Category

Please I have tried my best but to no avail, I want to limit search to specific category, but its not working. before now I customize my search permalink from example.com/?s=keyword to example.com/...
1
vote
0answers
135 views

HTTP Error after finishing uploading a video that is bigger than 64 MB -> After raising the upload limit manually in the wp-config file

I use Dreamhost as my web host. Previously my WordPress upload limit was 64 MB. I asked the tech from Dreamhost to boost it to 400MB. He told me I had to change a setting in my wp-config.php. That's ...
0
votes
1answer
189 views

Limit wp_nav_menu_objects() only to first-level menu items

I need to alter my menu URLs and add "/" to the beginning on every page except homepage. It works well using this piece of code: function change_menu($items){ if(!is_front_page()){ ...
0
votes
0answers
109 views

Search Replace Database ONLY for posts of certain category?

I need to search/replace my database but limit the action to posts of certain categories. Is this possible? I usually use https://github.com/interconnectit/Search-Replace-DB, but there is no way to ...
1
vote
0answers
52 views

Pages views limit [closed]

Is there a option or plugin that can limit a number of pages user can view per month? Im trying to make a site with video and text toturials and I need to limit user to view only 10 lessons (pages ...
0
votes
1answer
46 views

If user has 1 post then dont let him create new one [closed]

I have tryied all plugins.I need a php code not a plugin cause im running a front end post creator.I need a function or a php code which only allows a user to have 1 post only but if that post is ...
2
votes
1answer
1k 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
0answers
165 views

Limit post creation by role

Hi I want to limit post count a role can create. I am currently using Bainternet Posts Creation Limits. It works from dashboard but not for rest api.
0
votes
1answer
785 views

Defined Wordpress Memory Limit to Unlimited

define( 'WP_MEMORY_LIMIT', '-1' ); define( 'WP_MAX_MEMORY_LIMIT', '-1' ); So have a quite big server, I wish any of the websites to use maximum available ram. Will these settings work or will I ...
4
votes
5answers
10k views

Customizing get_the_excerpt() to specific length and “Read More” output.

I am costuming a template. There is a list grabbing the introduction from the first 1-2 paragraphs (all the articles from a category). If I set the excerpt to 295 words, sometimes the list grabs ...
0
votes
0answers
32 views

Excerpt being limited too early

I grabbed the code from here I have this in my post right now: "Test sentence for excerpt purposes. Link: https://www.ankitdesigns.com/demo/bysc/competitive/ontario-player-development-league/" ...
0
votes
2answers
326 views

How would I change the 10 MB limit to 5 GB in this script?

Found this and it works, but want to change the 10 MB limit to 5 GB. $upload_bytes_limit_reached = ( ( $filesize + $upload_bytes ) > ( 1024 * 1024 * 10 ) ); add_filter( 'wp_handle_upload', '...
4
votes
1answer
2k 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
5answers
22k views

How to limit get_posts()?

I've been researching this for the last 3 days. I'm triyng to limit the maximum amount of posts retrieved by get_posts(). I have this chunk of code: // all filters should be applied here $args = ...
0
votes
2answers
55 views

return only the first two terms of custom post

hey im trying to figure out how i can display only two terms that are associated with a custom post type. I tried using $wpdb but that doesn't work for me since i need the term links as well. any ...
0
votes
0answers
24 views

WP website won't accept any new content - need dedicated hosting?

I can't add any more content to the website. Theme devs said to increase limits on the server (memory_limit, max_input_vars, max_execution_time). We upgraded a package with the host, and tried to ...
0
votes
1answer
64 views

Balance Tags to the_content Words Length

I have a category page that I need to show some of the content of a the posts with HTML tags such as images. Site - http://hoffwebsites.com/wp-hoff-testing/ms-conversations/ I have found this code ...
1
vote
1answer
204 views

Limit Number of Taxonomy Terms (Images) Displayed

Getting some issues with taxonomy images plugin.I am trying to limit the number of taxonomy terms displayed on a page to 6. The following code is what I'm working with. It shows the term name and ...
1
vote
1answer
87 views

How can i limit the number of posts created per category?

How can I limit the number of posts created per category? And then delete the oldest post and save that one? I would like to do something like this: add_action("load-post-new.php","...
0
votes
1answer
460 views

How to restrict type/size of file uploads in any plugin?

I have a plugin, in this case it's Woocommerce Product Add-on which has an ability to allow folks to upload a file for the item being purchased. However, there is no restriction and I'm looking for a ...
3
votes
1answer
718 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
2k views

Limit username to specific characters (A-Z and 0-9)

How do I limit the username field upon registration to A-Z and 0-9 for single site? So no spaces, hyphens, underscores, dots etc.
4
votes
2answers
2k 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 ...
1
vote
0answers
575 views

Is there a maximum limit of the number of users returns by WP_User_Query?

I’m working on a search form which filters the users . Everything works but the result is always limited to 299 users. Here is my code which is vers basic : $args = array( 'orderby' => '...
0
votes
1answer
16 views

Single Time Login HELP

I am developing a software on wordpress. i want restriction on Login. if a user login for 1st time, he should not be allowed to login 2nd time. i am working on a software where user should not be ...
4
votes
2answers
2k views

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

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

Custom Post Limit for homepage only without plugin?

I have a wordpress site where my most recent post is displayed on the home page larger than my other posts. Starting at post number 2, the posts are displayed in a grid. I have pagination for 6 posts ...
0
votes
3answers
554 views

Why is my max_upload_filesize being limited to 2M? [duplicate]

I have had to reinstall my wordpress install. In order to add the content back I need to get my max_upload_filesize increased to at least 500M. I have went to every php.ini I can find and increased ...
1
vote
1answer
49 views

Limit tag selection to predefined list

It can get really messy when I'm entering tags. Sometimes I enter tag 1 sometimes Tag1 or tag01, this is very messy and I can get a lot of duplicated tags that should be the same thing. Is it ...
3
votes
3answers
3k 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 ...
0
votes
2answers
74 views

Video limit about wordpress

Good morning, actually i'm going to start with a new entrepreneur project and I'm thinking about build the website in Wordpress but I'll need to upload many GB of video everyday. There's some limit ...
1
vote
0answers
204 views

Adding character count and limit in comments, modifying labels and fields - jetpack

I am trying to configure Jetpack comments as following: I want to change the labels on the comment fields, but I have no idea where to find the code and edit the tags (they are also translated so I ...
1
vote
1answer
51 views

Limit 1 global comment per minute

I need a function to limit the same user to leave max 1 comment every minute on my wordpress website (all posts).
1
vote
0answers
33 views

Problem with the Loop - want to limit the access to three free articles

What I'm trying to do: If anyone who is not logged in, reads an article, I will increase a session var by one. Save that article ID via global $post and save the $post->ID to an array. After 3 ...