Forum Replies Created
-
AuthorPosts
-
Sridhar
ParticipantGot it.
There's a limit of 20 characters for CPT slug.
Meta Box silently fails when it should show an error and not create the CPT if the number of characters exceed 20.
Sridhar
ParticipantImage:
December 18, 2023 at 6:25 AM in reply to: ✅How can I enable a search form to search in custom meta? #44120Sridhar
ParticipantDecember 14, 2023 at 11:34 AM in reply to: ✅Need help creating a Delete button for Favorite Posts using MBviews #44085Sridhar
ParticipantAny update?
December 14, 2023 at 10:12 AM in reply to: ✅How to querry Favorite Posts for non logged in users in Bricks Builder? #44083Sridhar
ParticipantHi Peter,
What should be the user ID to pass as the 1st argument for visitors who are not logged in?
get_current_user_id() works for logged-in users.
Sridhar
Participant"This site can’t provide a secure connection
streamable.com sent an invalid response.
ERR_SSL_PROTOCOL_ERROR"Also, do not forget answering https://support.metabox.io/topic/hierarchical-post-type-causes-404/#post-43684.
Sridhar
Participantyes and also your Bricks template setup/structure and template condition.
Sridhar
ParticipantYou wrote:
This is where the problem starts to arise. Whenever I enable this option and updating the permalinks (twice to also flush) the page's stop working completely.
Can you share a screencast showing the same?
Sridhar
ParticipantJust tested and it works fine for me.
Ignore the time-wasting I did in the 1st video. I had a brain fade and forgot how to get the "<CPT> Attributes" meta box to appear when editing the entries.
https://app.usebubbles.com/i1vGXmJxCGEvovmMe5j4NK/hierarchical-cpt-1
https://app.usebubbles.com/jveQjdv1azKsuhpGGAJhTD/hierarchical-cpt-2
Sridhar
ParticipantHi Roel,
Do you mind sharing the URL of any post of your CPT type where the problem can be seen?
Sridhar
ParticipantWith the following test code, the HTML output is correct.
<?php $attachment_id = '189'; $img_src = wp_get_attachment_image_url( $attachment_id, 'medium' ); $img_srcset = wp_get_attachment_image_srcset( $attachment_id, 'medium' ); ?> <img src="<?php echo esc_url( $img_src ); ?>" srcset="<?php echo esc_attr( $img_srcset ); ?>" alt="Foo Bar"><img src="https://oxygen.local/wp-content/uploads/2021/12/jay-bird-ornithology-species-fauna-6862629-300x200.jpg" srcset="https://oxygen.local/wp-content/uploads/2021/12/jay-bird-ornithology-species-fauna-6862629-300x200.jpg 300w, https://oxygen.local/wp-content/uploads/2021/12/jay-bird-ornithology-species-fauna-6862629-1024x682.jpg 1024w, https://oxygen.local/wp-content/uploads/2021/12/jay-bird-ornithology-species-fauna-6862629-768x512.jpg 768w, https://oxygen.local/wp-content/uploads/2021/12/jay-bird-ornithology-species-fauna-6862629-600x400.jpg 600w, https://oxygen.local/wp-content/uploads/2021/12/jay-bird-ornithology-species-fauna-6862629.jpg 1280w" alt="Foo Bar">Sridhar
ParticipantYes. As usual, I forgot about the prefix.
All good now.
Wrote about this at https://wpdevdesign.com/getting-url-of-a-groups-image-field-from-settings-page-in-meta-box/.
Sridhar
ParticipantSee if this helps: https://wpdevdesign.com/settings-page-in-oxygen-using-meta-box/
Sridhar
ParticipantAll good. Covered this in detail at https://wpdevdesign.com/settings-page-in-oxygen-using-meta-box/.
-
AuthorPosts