Forum Replies Created
-
AuthorPosts
-
March 30, 2020 at 9:46 AM in reply to: ✅Version 1.50 removed MB_Admin_Columns_User and MB_Admin_Columns_Post classes #18735
Brian
ParticipantHi Anh & realj42 - thanks for providing the fix!
March 29, 2020 at 1:06 AM in reply to: ✅Version 1.50 removed MB_Admin_Columns_User and MB_Admin_Columns_Post classes #18724Brian
ParticipantThis happened to me as well after update. How did you get it working again?
Thanks in advance
Brian
ParticipantHi Anh,
Thanks for the detailed reply. Regarding multiple select dates - is there a jQueryUI that does support this? And if so would you all look into adding it? This would be a huge feature.Besides FacetWP how do you display data that's cloneable / serialized?
Regarding the last option, using the Conditional Logic extension - I'm not following. So I would create a new custom fields section and call it "trip-cal". Then add a group field for each month (Jan, Feb, etc). Then add the Select Advanced field - but this is where I'm lost. How would I use the conditional logic to pull in my trip dates that are attached to different "custom field" group?
Still needing a way to display trip dates by month but not seeing the best route to take?
Thanks in advance.
Brian
ParticipantHi Anh,
That worked thank you! I changed the field to a select advanced dropdown instead of the post dropdown. Any reason for the post field vs the select advanced field?Thanks again!
Brian
ParticipantHi Anh,
No the booking URL will be different for each tour date. Each date will have it's own woocommerece product page. So I was wanting to use the "select_advanced" dropdown field so that the user could select the correct woo product page for each date.I hope that made sense?
Thanks in advance!Brian
ParticipantHi Anh,
That worked and the values are showing know. Thanks for pointing that out.I forgot to include my "select_advanced" field in the shortcode for the booking url. Since it's in a group and the whole group is clonable. How would I write the select_advanced filed to just output the url (for whatever page was selected in dropdown)? As that's what I'll used for the button url.
Again thanks!
Brian
ParticipantHi Ahn,
Thanks for the advise on output buffering. When I copy the code it throws a syntax error. Should I remove the opening " <?php " ? That was the only thing that worked and did show my repeating drop down tabs. But my field values are not showing? Not sure why the values aren't displaying.Here is my full metabox code: https://pastebin.com/j19tR1mZ
I'm wondering if I just labeled / missed named something. As my values are not displaying for the group fields.
Thanks in advance!
Brian
ParticipantHi Anh,
That example does help and got me started. I guess I don't understand how to correctly formate what's inside the output. For my example I was hoping to just have one output as I have a dropdown tab that I wanted to include the MB data fields in.Here is my code. https://pastebin.com/NB3ZJmUD
Am I able to do something like this with only one output?
Thanks in advance!
Brian
ParticipantWill this be completed in 2019? +1
Brian
ParticipantHi Anh,
Thanks for the reply. I'm still struggling with the csv import. You are correct in that my ID column in my custom table must also have a matching entry in the wp_post table.Is there something I can add to phpmyadmin so that on import of the csv file it also creates the needed info for each in the wp_post table?
If not do you have an alternate approach to importing the csv file?
Lastly - I'm back to the same issue of the file advance field saving the attachment as an ID and not the full url path. I'm pulling my field values into a wpDataTable and the value for the attachments are getting displayed as the ID and not a link. Is there a hook that I can add to functions.php to tell my field to output the full url path and not the ID.
Thanks for all your help!
Brian
ParticipantHi Anh,
I set the field ID to AUTO_INCREMENT. This allowed me to import my csv file and everything in the custom mb table imported correctly. But when I go to my custom post type in wp admin these listings do not show. This is driving me bananas.How do I import a csv file for my custom post type that is using MB Custom Table?
Thanks!
Brian
ParticipantHi Anh,
Just a quick reply to my original question. I'm using phpMyAdmin to import my csv file for my MB custom table fields. I've got everything set up correctly but on import I get this error message.#1062 - Duplicate entry '0' for key 'PRIMARY'. Assuming it's associated with the ID field not getting auto generated.How can I get an auto generated ID field so that I can import my data?
Thanks in advance!
April 26, 2019 at 4:20 AM in reply to: change the name of the pdf file name that is displayed on front end #14291Brian
ParticipantHi Anh,
Thanks for the reply. Ok I've changed the meta box into a group. At first the code didn't work - but I added an "s" toreset( $file_id );and it seem to work just fine.- Was that correct to do?
- How do you use Meta Box shortcodes to output group fields? For standard non grouped fields I've been doing this
[rwmb_meta id="field_id"]and it works. What do you do for grouped field values? Also your shortcode doc could really use an update / give a few more working examples. - "Can you check if the current page has PDF file in the my_file field?"
Yes it was in the field. But now since I changed it to be in a group I don't know what the ID would be to test again. - Are you having issues saving settings in the Group Field in MB Builder?
Here is a video showing the "default state" radio and "group title text" radio button not saving. I've tried multiple times. https://cl.ly/1e38a0f89071 - File Advanced showing "max number of files" even though I did not select the "show status" check box.
- If you remove the "Label" for the Group field - but then you add a "Group title text" it seems like that should then show up where the normal "Label" field showed. Currently all my "group" fields are blank. See the above video link.
add_shortcode( 'group_monthly_calendar', function( $atts ) { $output = ''; $group = rwmb_meta( 'group_cal_pdf' ); $file_ids = isset( $group['cal_pdf'] ) ? $group['cal_pdf'] : null; $file_id = empty( $file_ids ) ? null : reset( $file_ids ); $file = RWMB_File_Field::file_info( $file_id ); $title = isset( $group['cal_title'] ) ? $group['cal_title'] : ''; if ( is_array( $file ) ) { $output .= "<a href='{$file['url']}' target='_blank'>{$title}</a>"; } return $output; } );Thanks in advance!
April 24, 2019 at 4:51 AM in reply to: change the name of the pdf file name that is displayed on front end #14256Brian
ParticipantHi Anh,
Thanks for the detailed reply! Ok slowly learning. For the first two snippets you provided. I'm not using a template file. I'd like to incorporate it into a shortcode in my functions.php file and then just use the shortcode to output those added values? Is that possible / what would that look like?For the second solution. This didn't work for me. I'll touch base with theme author to see if that field accepts shortcodes.
But I also tried adding this to the page manually like this to test:
<a href="[your_file_url]">MY TEXT</a>But the link it generated was for the exact same page I was on. Not the pdf link? Not sure what went wrong there.
Thoughts - Thanks!
April 19, 2019 at 11:13 PM in reply to: ✅Shortcode in function not working for me after 4.17.0 update #14209Brian
ParticipantHi Anh,
Excellent - thanks for looking into this for me.
Thanks again! -
AuthorPosts