Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 34 total)
  • Author
    Posts
  • BrianBrian
    Participant

    Hi Anh & realj42 - thanks for providing the fix!

    BrianBrian
    Participant

    This happened to me as well after update. How did you get it working again?

    Thanks in advance

    in reply to: List custom group field by month ascending #17906
    BrianBrian
    Participant

    Hi 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.

    in reply to: MB Group Clone Shortcode #16403
    BrianBrian
    Participant

    Hi 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!

    in reply to: MB Group Clone Shortcode #16351
    BrianBrian
    Participant

    Hi 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!

    in reply to: MB Group Clone Shortcode #16323
    BrianBrian
    Participant

    Hi 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!

    in reply to: MB Group Clone Shortcode #16282
    BrianBrian
    Participant

    Hi 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!

    in reply to: MB Group Clone Shortcode #16259
    BrianBrian
    Participant

    Hi 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!

    in reply to: WP All Import/Export Add-on #16138
    BrianBrian
    Participant

    Will this be completed in 2019? +1

    in reply to: MB Custom Table beginner questions #14519
    BrianBrian
    Participant

    Hi 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!

    in reply to: MB Custom Table beginner questions #14505
    BrianBrian
    Participant

    Hi 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!

    in reply to: MB Custom Table beginner questions #14503
    BrianBrian
    Participant

    Hi 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!

    BrianBrian
    Participant

    Hi 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" to reset( $file_id ); and it seem to work just fine.

    1. Was that correct to do?
    2. 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;
      } );
    3. 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.
    4. "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.
    5. 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
    6. File Advanced showing "max number of files" even though I did not select the "show status" check box.
    7. 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.

    Thanks in advance!

    BrianBrian
    Participant

    Hi 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!

    BrianBrian
    Participant

    Hi Anh,
    Excellent - thanks for looking into this for me.
    Thanks again!

Viewing 15 posts - 16 through 30 (of 34 total)