SadNinja
Forum Replies Created
-
Found this https://ww.wp.xz.cn/plugins/custom-login/ 10x better and free
Forum: Plugins
In reply to: [amr users] Rebuild cache fails when caching huge listLook in your wp-includes for a file named “default-constants.php”. than change the following code
if ( ! defined( 'WP_MAX_MEMORY_LIMIT' ) ) { define( 'WP_MAX_MEMORY_LIMIT', 'xxxM' ); }change the xxxM to something higher. This worked for me.
Forum: Fixing WordPress
In reply to: Creating a custom class for featured imagesI took a screenshot of where I want to enter the name of the class using the field I created in the tutorial here
I would like the class to be on the images that gets pulled from a list of items via a category. I have a bunch of projects and I want to give them different hover effects based on the type of project it is. This is example of the shortcode that I am using to display the projects
[catlist thumbnail=yes thumbnail_class=categories-image numberposts=50 id=11]the id is based off the category they are in but I want to have different effects for things in the same category. I may be barking up the wrong tree as to how to go about this, but from my Google searches I thought this was the right route. Again thanks for your help, this has been kicking my butt all day.
Forum: Fixing WordPress
In reply to: Creating a custom class for featured imagesHere is the code in my functions.php file I should have added it in the original post sorry
function be_attachment_field_credit( $form_fields, $post ) { $form_fields['be-custom-class-name'] = array( 'label' => 'custom class', 'input' => 'text', 'value' => get_post_meta( $post->ID, 'be_custom_class_name', true ), 'helps' => 'Custom class for images', ); return $form_fields; } add_filter( 'attachment_fields_to_edit', 'be_attachment_field_credit', 10, 2 ); function be_attachment_field_credit_save( $post, $attachment) { if( isset($attachment['be-custom-class-name'] ) ) update_post_meta( $post['ID'], 'be_custom_class_name', $attachment['be-custom-class-name'] ); if( isset( $attachment['be-custom-class-name'] ) ) update_post_meta( $post['ID'], 'be_custom_class_name', ( $attachment['be-custom-class-name'] ) ); return $post; } add_filter( 'attachment_fields_to_save', 'be_attachment_field_credit_save', 10, 2 );I’m glad I could help fix your problem put I am still out of luck. I made a test site and the shortcode works fine so I guess it must be a conflict with another plugin or maybe a permissions issue. Does anyone have any insight on why the plugin works fine and lets people vote but won’t let me us the shortcode to display their votes on other pages?
edit
I was doing some more testing on the test site and I found if you add [kkstarratings id=x] where x equals a post that hasn’t been created yet it shows a new grouping of stars to vote on. This must be how the plugin sets up new posts so I have no idea why the plugin can create them when I add a page manually but not when I insert the shortcode.I was wondering the same thing I read in the changelog that you can
-Update: Shortcode can contain optional ‘id’ argument to display ratings for a specific post intentionally. e.g. [kkstarratings id=”192″]
but when I tried but it just output “[kkstarratings id=”192″]” as plain text. Any help would be much appreciated thanks in advance.