Questions tagged [limit]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

Limit front-end submitted posts by role

Right, I know this question has been asked, but, none have provided me with a workable solution, hoping someone can help. I created a property listing site using the plugin Essential Real Estate. The ...
0
votes
1answer
28 views

How to limit the number of custom posts certain users can publish in Wordpress using php script?

Background: I tried both https://wordpress.org/plugins/bainternet-posts-creation-limits and https://wordpress.org/plugins/limit-posts/, but they didn't work for some reason with my custom posts. So I ...
0
votes
0answers
12 views

How to check the date of a post is within the user membeship start date - end date

I have to modify memberships plugin. A member should be able to see posts (i am talking about posts in the specific category which i limit only for the members), even within this category a user can ...
0
votes
0answers
11 views

How to limit creation of terms beneath a certain depth?

I'm dealing with some custom hierarchical taxonomies. In the taxonomy templates I'm only displaying the capital terms and one level of child terms. Naturally, I'd also like to restrict, on the backend,...
0
votes
2answers
16 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
23 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
37 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 ...
1
vote
1answer
61 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 ...
1
vote
1answer
54 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
187 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
1answer
344 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
78 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
184 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
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 ...
1
vote
0answers
202 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
1k 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
35 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
600 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
125 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
66 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
97 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
286 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
103 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
627 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
909 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
93 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
1k 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
55 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
5k 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
116 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
331 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
55 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
635 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
32 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
106 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
42 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
210 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
136 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
112 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
429 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
876 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
140 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
97 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
2k 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
927 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
810 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 ...