Forum Replies Created
-
AuthorPosts
-
Rebecca Robertson
ParticipantBut can I create a button in the form to submit the post rather than using the shortcode submit button, and if so, how would I code that button?
Rebecca Robertson
ParticipantHello John,
Like Yasmine, I would also like to know how you accomplished this.Rebecca Robertson
ParticipantI also need that functionality.
Rebecca Robertson
ParticipantOn the admin account, my post table show's the post title, type of post, author, status and date added.
This is the query for that page:$args_published = array( 'posts_per_page' => -1, 'post_type' => 'any', 'post_status' => 'publish', 'orderby' => array('date'=>'ASC','title'=>'ASC') );It shows all post types as well as pages, which is exactly what it should do. Notice that I did not include the author parameter in the query.
If I add the author parameter to the query, it makes no difference what I do with the post_type parameter, posts from post types A, B, C, & D will be displayed. I can query for only post_type E or for post_type gallery or for post_type page or for post_type A and posts from post types A, B, C & D will be displayed.
It seems like the author parameter nullifies the post_type parameter.
Rebecca Robertson
ParticipantI am doing both of those things, as you can see in the code.
Rebecca Robertson
ParticipantYeah, those are the ones. I've tried all of that to no avail. What confuses me is that sortable text fields work fine, just not sortable groups.
Rebecca Robertson
ParticipantAdditionally, where would you put the code for the reordering of post fields? In the functions file or on the page where you are calling the form?
Rebecca Robertson
ParticipantThat didn't help.
This is the add image button I'm talking about. To allow authors to add a featured image to a post.
clicking on it opens the iframe in the wrong place and breaks the page. Changing the sanitize_callback has no effect on it whatsoever.March 9, 2022 at 12:02 AM in reply to: ✅Something is not right with the shortcode on page ID: #34408Rebecca Robertson
ParticipantI have checked it several times. It's there, but this issue is resolved.
Rebecca Robertson
ParticipantPrevious link may not work, try this one:
https://drive.google.com/file/d/1fLQ08yV1cQURfC9RGPSg0NisnfK5qyWa/view?usp=sharingRebecca Robertson
ParticipantAlso, when adding fields that use iframe (such as single image) to the frontend or when clicking on the add media button of a frontend form, the iframe breaks the page. The content of the page disappears and the iframe content shows up under the footer of the page.
https://drive.google.com/file/d/1dYpe32iF6MNcMiYSEkwRoxK1H4RKSLU_/view?usp=sharing
You can see the add media button there above the content edit box. For some reason when you click on it though, this is what happens:
https://drive.google.com/file/d/1jSJNR4rCnwKKirlMUNgDP-l3k2CAPQ5U/view?usp=sharing
Rebecca Robertson
ParticipantRebecca Robertson
ParticipantHow?
Rebecca Robertson
ParticipantThe id is there.
I just decided to build it by hand rather than use the shortcode as I need to add some functionality specifically for admins anyway.
The hand-coded content is using the id of the edit page, the same id used in the shortcode, and it works fine. The only problem I'm having with the hand-coded is adding a delete button in the dashboard.
Rebecca Robertson
ParticipantThank you!
The documentation wasn't helping much, I tried putting the size everywhere I could think of. I finally ended up using the code from the adding images to categories.
-
AuthorPosts