Wildcard
Forum Replies Created
-
Forum: Plugins
In reply to: [CMB2] Reordering Repeater group fields does not workyeah no problem here is a video file of the functionality. So the radio boxes are set up using the conditional plugin you guys recommend on git but there is some js I had to include because the group box were not working. All the other metaboxes are setup using the cmb2 plugin.
here is the link to the video via we transfer
Forum: Plugins
In reply to: [CMB2] Reordering Repeater group fields does not workSo the console is not showing any errors and the reorder is suppose to be built in to the cmb2 plugin. Its the little arrows and the bottom of the repeater field.
Update:
No more js error but the styling is still off so not sure what is going on after that update. I need to figure this out so that i can set this up and see if it is going to work for what we need it forhere is the url
UPDATE:
got the plugin back in and it looks good in the backend but styles are not pulling into the front end i do get one js error
TypeError: availability is undefined [Learn More]
- This reply was modified 7 years, 2 months ago by Wildcard.
Hey sorry to get back so late but i had to disable the gallery since our site is live. but here is the url: https://harvestvail.com/pantry/ its enabled again so if your around it up. I errors but not sure why they seem to be coming from foogallery.js
Same thing is happening to me. I updated WordPress and the galleries are not working now. I also tried to deactivate the other plugins. Links are all there but there is just a white box where the image should be and it looks like the masonry is not styling its self. Do they see this reply or should I make a new ticket?
- This reply was modified 7 years, 3 months ago by Wildcard.
I still get the ! point for these months even with the update
Forum: Hacks
In reply to: Custom taxonomy not saving in edit screen of custom post typeI tried disabling all of my plugins and have found that the conflict that is coming from a plugin called Anything order I use it to allow the user to move post and menu items around to organize them. SO should i email that author and let the know that there plugin is cause conflict? Thanks for the help
Forum: Plugins
In reply to: [CMB2] Retrieving categories from imagesCool yeah i finally got it to get the terms then i did a foreach statement to get the slug for each term and got them assigned to each image. so my loop looks like this
<?php foreach ((array)$galleryThumbnails as $attachmentID => $attachment_url ) { $categoryTerms = get_the_terms($attachmentID,'category'); $img = wp_get_attachment_image( $attachmentID, 'gallery-thumb');?> <div class="all portfolio-item col-xs-12 col-sm-3"> <?php echo $img;?> <?php echo $attachmentID;?> <?php foreach ((array)$categoryTerms as $categoryTerm){ $termSlugs = $categoryTerm->slug; echo '<p>'. $termSlugs;.'</p>'; }?> </div> <?php }?>
and the var_dumps look like this
int(209) string(15) “cut-out-letters” string(5) “metal”
int(210) string(15) “cut-out-letters”
int(211) string(15) “cut-out-letters”
int(212) string(15) “cut-out-letters”
int(213) string(15) “cut-out-letters” string(11) “directories”
So now i can add these to the class of the div so that i can filter using the isotope.
it might seem like over kill but i couldn’t find a good portfolio gallery plugin to function the way we wanted so had to build out my own.Forum: Plugins
In reply to: [CMB2] Retrieving categories from imagesHey sorry it was a long day yesterday so i didn’t really explain.
so here is my meta box config
////// Custom Meta Boxes ////// /* ********* adding custom metaboxes ***************** */ add_action( 'cmb2_admin_init', 'portfolio_metaboxes' ); /** * Define the metabox and field configurations. */ function portfolio_metaboxes() { // Start with an underscore to hide fields from custom fields list $prefix = '_portfolio_metaboxes'; /** * Initiate the metabox */ $cmb = new_cmb2_box(array( 'id' => 'portfolio_images', 'title' => __('Portfolio Images', 'cmb2'), 'object_types' => array('page'), // Post type 'context' => 'normal', 'priority' => 'default', 'show_names' => true, // Show field names on the left 'cmb_styles' => true, // false to disable the CMB stylesheet 'closed' => false, // Keep the metabox closed by default 'show_on' => array( 'key' => 'page-template', 'value' => 'page-portfolio.php' ), // Specific post IDs to display this metabox )); /// file list for thumbnails of portfolio item $cmb->add_field( array( 'name' => __( 'Upload Images for this portfolio page', 'cmb2' ), 'desc' => __( 'upload all the images for this portfolio page', 'cmb2' ), 'id' => $prefix . '_images', 'type' => 'file_list', 'preview_size' => array( 100, 100 ), // Default: array( 50, 50 ) ); }
its just a file list to upload images to a page. Then i installed a plugin to add categories to the media attachments. I believe its just using the categories taxonomy. I tried to just add categories my self but my boss wanted to have check boxes in the popup modal for the media so this plugin handled that.
Ok so I have the images upload and some categories check in the pop up modal. I have got the images on to the page using CMB2 example page code for file_list. Now i need to some how get the cat_names that are associated with each image, which could be more then one cat_name, and then add them to a div class. I am doing this so that I can use isotope to filter the divs. Does that make sense. SO how can i use the attachment ID of the images to gather those cat_names. Is that possible?
Forum: Plugins
In reply to: [CMB2] Adding Custom field to attachemnet details popupHmm ok i was just trying to use cmb2 but i ended up making a plugin to add it to the attachment details modal. but not it doesn’t show up on the attachment page which is ok i guess since it ment to allow the user to upload images to a post and edit all the stuff right there in the upload modal….i was trying to get the cmb2 field to go to the modal using the attachment_fields_to_edit hook but couldnt get it to work…
Forum: Plugins
In reply to: [CMB2] Adding Custom field to attachemnet details popupSO better yet is there a way to add it to the media upload modal…using the wp filter “attachment_fields_to_edit”
Forum: Plugins
In reply to: [CMB2] Missing image values when I set my site livethanks so much for the explanation it really helped the last site I set live nothing got lost so not sure what I did different but it all seemed to work this time around although this time they were just images and not file list so I will keep all this in mind when I set the next site live…thanks a bunch for all the in depth support
Forum: Plugins
In reply to: [CMB2] Missing image values when I set my site liveSo we do use that tool when we go live. I kind a need to figure this to cause we are setting a site live that has a huge portfolio and we use cmb2 to upload images. do you think if i did the search and replace before i change the wp url that it would help. basically we back everything up including the db then we change the url then do the search and replace to remove all the beta. in the db to the new url address and then if you go to a page that we used cmb2 for images the url is not there anymore we have to re upload the image again…even though the url in the db has been change to the new one using the serach and replace…any more ideas on how to fix this
Forum: Plugins
In reply to: [CMB2] Illeagal string offseti think we may have figured it out my shortcode was hijacking the the_post so i had to save the get_the_id to a variable
<?php $post_id = get_the_ID();?>
change all the query’s for the cmb2 to post_id
$contactHeadline = get_post_meta( $get_the_id(), '_fifth_section_content_headline', true );
to
$contactHeadline = get_post_meta( $post_id, '_fifth_section_content_headline', true );
- This reply was modified 8 years, 5 months ago by Wildcard.