Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [limit]

The tag has no usage guidance.

1
vote
1answer
32 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 ...
-1
votes
1answer
48 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
9 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
0answers
59 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
19 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/...
0
votes
1answer
139 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()){ ...
1
vote
0answers
22 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
87 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
1answer
45 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 ...
1
vote
0answers
108 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
630 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 ...
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
268 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', '...
0
votes
0answers
102 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 ...
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
61 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
195 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
81 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
426 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 ...
1
vote
0answers
508 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 ...
0
votes
1answer
80 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
417 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
44 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 ...
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 ...
0
votes
2answers
68 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
175 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
50 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 ...
0
votes
1answer
427 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
29 views

Is there a way to limit multi upload in media upload box?

What I'm trying to learn is to remove multiple upload (and drag&drop). I want a user (vendor) should be able to upload only one file when clicks on upload button. Instead of completely removing ...
0
votes
1answer
77 views

Limit attachment caption characters

I want to limit the characters a user is able to enter for the image/attachment caption. There are already long captions in the system and I don't wont to touch them. Any ideas on how to do this? I ...
0
votes
1answer
40 views

Limit access to a page

I try to limit access to a page only for registered users before a specific date. For the others, a message must be display. Here is my code <?php if( strtotime( $user->user_registered ) &...
0
votes
1answer
158 views

How to get max upload size and accepted file types on multisite?

I'm switching a single WordPress site to a WordPress Multisite. I'm maintaining some post meta boxes with custom fields, and some front-end forms, where I maintained some features like maximum upload ...
1
vote
0answers
132 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 ...
1
vote
0answers
103 views

Wordpress Media Library - Upload space used

Navigating to Media -> Library, I don't get the upload space used displayed: as I should based on various screenshots on the net: Im using WordPress 4.2.6 and Im self-hosted on a shared hosting plan....
1
vote
1answer
375 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
2answers
640 views

How to limit WP_Query to one result on the loop?

I am trying to get only one post and this needs to be the latest one so here is what I am doing: $basic_args = $wp_query->query_vars; $basic_args['tax_query'] = $wp_query->tax_query; $...
1
vote
1answer
118 views

How to limit comment author to one comment per post

Is there a way to limit comments to one per post based on the comment author email ? It should work for none logged in users.
0
votes
1answer
95 views

I want to show my post for limited time, how is it possible?

I want to make one website like a newspaper, so i want to show my daily post for one day or limited time, after one day previous post will go to archive and no longer show on web page, how is it ...
0
votes
0answers
1k views

How to get to the date of the uploaded file

Anyone can tell which is the filter (if there is any) used for the date of an uploaded file. This can be useful to limit the upload for the users based on the time.
0
votes
1answer
3k views

WP_Query posts_per_page ignored

I struggle already for a few hours with the posts_per_page ignored in my WP_Query : [query] => Array ( [post_type] => Array ( ) [posts_per_page] => 4 [meta_key] =...
3
votes
1answer
697 views

Limit number of pages that use a specific template?

I have a custom page template, so a .php file in my themes folder with this at the beginning /* * Template Name: MyTemplate */ Now I can, in the WP backend, create new pages and select this ...
0
votes
0answers
699 views

Limit Search Queries per IP per Day

I have a small website keeps several pdfs, but to prevent having all of the pdfs slurped up by someone's script (and to keep track of popularity of each file), I am requiring that people enter the ...
0
votes
2answers
290 views

Limiting number of related posts

I'm trying to add a related posts section to the bottom of my single post views. It needs to grab the categories of the current post and show just 2 posts that match any of those categories. I'm ...
0
votes
1answer
964 views

numberposts not working

I've got this following block of code and want to limit the number posts to 2, but it doesn't seem to work..?? I've also tried using posts_per_page, doesn't seem to work either. Can anyone help point ...
0
votes
1answer
82 views

Improvements to “limit login attempts” plugin

I'm new in php so I'm still not good enough to make improvements in this php file This php file sends mail alerts to the site admin, I want to change it. I want to add my email instead of admin email ...
0
votes
1answer
148 views

How to get rid of Ellipsis on Woocommerce [Essential] Theme [closed]

As the picture says I am trying to remove the three dots that follow the end of the blue sentence (shown in the photo). I am also trying to increase the numbers of characters it can reveal. ...
0
votes
2answers
185 views

How can I set a maximum allowed post size and number of posts submitted?

How can limit the size of posts that authors can create on my WordPress site and the number of posts they can create?