Forum Replies Created
-
AuthorPosts
-
Jason
ParticipantI shared my site credentials via the contact form.
Jason
ParticipantI'm having this same problem.
When I update the Metabox custom field values, they will not save.
I tried uninstalling all my plugins, and even tried changing the theme, but I still can not save values to Metabox custom fields.
I know this did work on this website a couple months ago, but since updates it has stopped working. I wonder if it is a problem with the database, or the Metabox plugin.
I don't know what else to try.
Jason
ParticipantYes. Please consider supporting WPGraphQL.
Jason
ParticipantIt is possible to enqueue an asset when a short code is present in a post, as you can see in this example: https://developer.wordpress.org/reference/functions/has_shortcode/#comment-747
There should be a way to enqueue some script when some post uses some shortcode.
Jason
ParticipantI know I can write my own customs CSS there. I want to enqueue assets that are already registered. This is common in WordPress plug-ins and themes.
As you can see from this blog post, it is recommended as a best practice.
https://www.wpbeginner.com/wp-tutorials/how-to-properly-add-javascripts-and-styles-in-wordpress/Jason
ParticipantI would also like this feature.
Jason
ParticipantThank you for your help. Also, I found this plugin that automatically deletes attachments when a post is deleted. I'm having success with this plugin.
https://wordpress.org/plugins/autoremove-attachments/Jason
ParticipantI'm also having this problem. I would like to validate fields inside a group.
function register_application_meta_boxes( $meta_boxes ) { $prefix = ''; $meta_boxes[] = array ( 'title' => esc_html__( 'Job Application Form', 'zri-domain' ), 'id' => 'job-application-form', 'post_types' => array( 0 => 'job-application', ), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array ( 'id' => $prefix . 'first-name', 'type' => 'text', 'name' => esc_html__( 'First Name', 'zri-domain' ), 'admin_columns' => array( 'position' => 'replace title', 'title' => 'First Name', ), ), array ( 'id' => $prefix . 'experience', 'type' => 'group', 'name' => esc_html__( 'Employment History', 'zri-domain' ), 'fields' => array( array ( 'id' => $prefix . 'start-date', 'type' => 'date', 'name' => esc_html__( 'Start Date', 'zri-domain' ), 'js_options' => array( 'dateFormat' => 'mm/dd/yy', ), ), array ( 'id' => $prefix . 'end-date', 'type' => 'date', 'name' => esc_html__( 'End Date', 'zri-domain' ), 'js_options' => array( 'dateFormat' => 'mm/dd/yy', ), ) ), 'clone' => 1, 'default_state' => 'expanded', 'add_button' => esc_html__( '+ Add Employment', 'zri-domain' ), 'collapsible' => true, 'group_title' => 'Employment {#}', ) ), 'validation' => array( 'rules' => array( 'experience' => array( 'start-date' => array( 'required' => true, 'date' => true ), 'end-date' => array( 'required' => true, 'date' => true ) ) ), ) ); return $meta_boxes; }Jason
ParticipantIs there a way to upload the files to google drive, instead of the WP media library?
Jason
ParticipantAlso, is there a way to secure the PDF files that are uploaded. So, the PDF files are not indexed by search engines. And only WordPress administrators can download the PDF files.
Jason
ParticipantThis worked! Thank you very much!
Jason
ParticipantThank you! That works!
Jason
ParticipantNow I'm not able to get the thumbnail url. Here is my code. Could you help me?
{% set args = { post_type: "project", posts_per_page: 6 } %} {% set posts = mb.get_posts( args ) %} {% for post in posts %} <a class="swiper-slide bg-moon-gray brand-secondary link" href="{{ mb.get_permalink( post.ID ) }}" style="background-image:url({{ post.thumbnail.thumbnail.url }})" > <span class="pt6 pb5 mt5 b">{{ post.post_title }}</span> </a> {% endfor %}Jason
ParticipantThat works! Thank you!
Jason
ParticipantThe Validation feature is working for me! Thank you!
Is there a way to use Validation in the custom form builder?
-
AuthorPosts