rotem bejerano
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
show fields from other post type
Started by: rotem bejerano in: Toolset Professional Support |
2 | 2 | 6 years, 5 months ago | ||
error 500, i have set Number of items per page to 999
Started by: rotem bejerano
in: Toolset Professional Support
Problem: I increased the number of items per page shown in wp-admin for a custom post type. I set it to 999, and now I'm seeing an error 500. I can't figure out how to fix it. Solution: I found this message: Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /***/wp-includes/wp-db.php on line 1889 If it's possible to increase the amount of memory on your server, that would be the first thing to try. Something like 512MB instead of 256MB might work, but it's hard for me to know. If your host is able to bump up the memory to 512, you can try adding these lines in wp-config.php: define('WP_MEMORY_LIMIT', '512M'); define( 'WP_MAX_MEMORY_LIMIT', '512M' ); If you're not able to get the memory increased, or you need a quick fix, I can show you how to modify this pagination value directly in the database. ALWAYS MAKE A DATABASE BACKUP BEFORE MODIFYING DATABASE VALUES MANUALLY! After you backup the db, in the usermeta table, look for a row where the User ID equals your User ID and the meta_key looks like "edit_voter_per_page". Yours may be slightly different based on your post type slug. You should find a row with the meta_value 999. Modify that value to be something smaller like 50. Then you should be able to regain access to the Voters dashboard. |
2 | 4 | 6 years, 6 months ago | ||
Different Views filters for different Users
Started by: rotem bejerano
in: Toolset Professional Support
Problem: I would like to filter a View of posts using different filter values for different Users. Solution: You can create a custom field for Users, and store the value in the custom field. Then you can pass that value into the View of posts as a shortcode attribute. [wpv-view name="your-view-slug" filtervalue="[types usermeta='filtervalue' output='raw' current_user='true'][/types]"] Relevant Documentation: |
2 | 4 | 6 years, 7 months ago | ||
show NUM keyboard 0-9, use bootstrap btn with edit-post-ink, user ctf filter
Started by: rotem bejerano
in: Toolset Professional Support
Problem: I have a phone custom field, and when entering a value I would like to show the number keyboard input instead of the alphanumeric keyboard input. Solution: You can use custom code to modify the input type: ( function( $ ) { $( document ).ready( function(){ $('input[name="wpcf-should-be-number"]').prop('type','number'); }); })( jQuery ); |
3 | 4 | 6 years, 7 months ago |