Forum Replies Created
-
AuthorPosts
-
Mark McLachlan
ParticipantI do write some code - but this, as simple as it may be for someone who codes everyday - has defeated me.
The method you suggest is along the way I had been working.
I would think that for the sake of accessibility this would be something that would be worth the attention of the plugin dev's.
I am in the planning stages of a site that will have multiple authors and event forms etc.
It would be a nightmare to have to add alt text to images uploaded by hand.A requirement of the site is that it meet accessibility standards.
Could you bring this to the attention of the dev's please. I think it would make an excellent article for your website and or You Tube channel.Mark McLachlan
ParticipantI had issues but have them largley resolved some time ago.
I enquired about the updates as the post has the following at the top"Updated: February 21, 2023"
Can you establish whether there were changes/improvements to the code used/demonstrated please?
Mark McLachlan
ParticipantIt was doing that because the following code is in the View code I copied.
<pre> {{ mb.print_r(options) }} </pre>Remove that and all is fine.
Thank you, I think all is now well.Mark McLachlan
ParticipantThank you. Thank you.
This might be something that needs to be fixed.
I copied the View code from
https://github.com/wpmetabox/tutorials/blob/master/showing-opening-hours-section-with-MB-Views/template.phpIt is also available at
https://github.com/wpmetabox/tutorials/commit/5495291a395ab920ecd5e4daaacad9a82756cf75and a portion of the code with that error is also here
https://metabox.io/display-restaurant-opening-hours-p1-meta-box-gutenberg/When I view the custom posts by going to
All Meta Box Forms -> page form opening hours test -> View
there is still an error of some type on the front end above where the "Opening Hours" display (correctly)There is the text "difference_between_weekdays_and_weekend1".
when I "inspect" it I see it is wrapped in "pre" tags
I have searched for where this is coming from.
It does not appear to be in the View code or where the custom fields are written in the backend."difference_between_weekdays_and_weekend" is only in the first options field as far as I can determine.
Mark McLachlan
ParticipantMy apologies, as the form was not displaying as I expected, I assumed it was not saving to the database.
I removed the prefix coho and updated it.
Then dumped the table in the database.
I duplicated the field group and published it after deleting the original.
The field group is now only assigned to one CPT; Meta Box Form
This left me with an empty table in the database.
I then went to Meta Box Forms -> Add New and added the values to the post for the opening hours from the metabox at the bottom of the editor and published it.
On the front end it did not display the hours which were input, rather just "Monday""Open All day" etc for each day of the week as per the screen shots I have emailed.
I created a page "https://www.staging42.boyneburnettinlandrailtrail.org.au/opening-hours-test/" using the form block and input the values and submitted the form.
It saved as "Pending" as per the settings. I published it and viewed on the front end.
The result was the same just "Monday""Open All day" etc for each day of the week as per the screen shots.I have emailed a zip file with images of each step for both cases. They are sequential (A, B, C etc) so show in order, with the file name describing each.
I have also included a .txt file with the full text from the two rows created in the database table.
Thanks
Mark McLachlan
ParticipantThis is becoming quite frustrating.
Could you please address my question as above (19th April)Mark McLachlan
ParticipantThe staging site I set up had a problem.
I have a new one at
https://www.staging42.boyneburnettinlandrailtrail.org.au/wp-login.phpOnce logged in to the backed you will see a custom post type
Meta Box Forms
I have added a post to that post type and published it. I had input the opening hours custom fields when writing the post.
The post displays on the front end.
I have added a menu item for it entitled "Form Display"
The content and custom fields "days of the week" display in a list as Monday Tuesday etc.
The opening times for each day as input into the custom fields do not.Mark McLachlan
ParticipantI have resent the information, thanks
Mark McLachlan
ParticipantMy apologies, my question was unclear, and I have a typo as well.
I was trying to explain my my way ahead when talking about roles etc, that these are things still to do, not with metabox though.When I wrote
"I have built a block using Metabox."
I should have said
"I have built a block using Metabox to put the form into a post instead of using a shortcode"When I wrote
"My plan ahead is to make a template for the custom post type and use the block to dynamically add data from each user to their own "business""I meant to say "a block"
Having looked about, I think I will have to use a third party solution such as Stackable Blocks for that.
Mark McLachlan
ParticipantHello Long
done
thank youMark McLachlan
Participanthere is an image showing what is happening.
https://drive.google.com/file/d/1KOukBsWZ2Dmpg--841QntUjq5l-5RpRU/view?usp=sharing
-
AuthorPosts