mibrenner
Forum Replies Created
-
Issue still exists in User Menus 1.2.4
Thanks for your help Michael. Your suggestion had me find a
remove_meta_box()
function I had added a while back. ???♂?{"product_type":{"name":"product_type","label":"Types","singular_label":"Type","description":"","public":"true","publicly_queryable":"true","hierarchical":"false","show_ui":"true","show_in_menu":"true","show_in_nav_menus":"true","query_var":"true","query_var_slug":"","rewrite":"true","rewrite_slug":"","rewrite_withfront":"1","rewrite_hierarchical":"0","show_admin_column":"true","show_in_rest":"true","show_in_quick_edit":"","rest_base":"","rest_controller_class":"","labels":{"menu_name":"","all_items":"","edit_item":"","view_item":"","update_item":"","add_new_item":"","new_item_name":"","parent_item":"","parent_item_colon":"","search_items":"","popular_items":"","separate_items_with_commas":"","add_or_remove_items":"","choose_from_most_used":"","not_found":"","no_terms":"","items_list_navigation":"","items_list":""},"meta_box_cb":"","object_types":["product"]},"]}
- This reply was modified 5 years, 4 months ago by mibrenner.
Ok, thanks for the update.
Forum: Plugins
In reply to: [Gravity Forms + Custom Post Types] Time Field Not SavingThis is a nice hack but I’m wondering if the core plugin might be updated to handle time variables.
Bump, please.
Did this fix ever get integrated into core? I’m always nervous making changes to plugin files in consideration of my code’s future handlers. ??
Thanks!
It turns out that the Use Google Libraries plugin caused the conflict with CPT. I’m guessing it had to do with mixed up versions. I’ve since removed UGL plugin.
Forum: Plugins
In reply to: [Gravity Forms: Post Updates] Confused as to usageSorry for your loss @Jupitercow.
Forum: Plugins
In reply to: [Gravity Forms: Post Updates] Confused as to usageOkay, I found a GitHub repo that contained some more installation instructions.
For anyone with the same question:
- Do not create a second Gravity Form. This plugin lets you use the original form, but prefills the form fields with the specific post/page content.
- Create a page template for your “Edit [Post]” page. In it, include this and update the gravityform ID with the correct form ID for your original Add Post (mine is 2 in this case):
<? $edit_post_id = isset( $_GET['gform_post_id'] ) ? (int) $_GET['gform_post_id'] : 0; if ( !empty( $edit_post_id ) ) { echo do_shortcode('[gravityform id="2" title="false" description="false" update="'.$edit_post_id.'" ]'); } ?>
- If you want to have a link/button on the custom post template, say your single-company.php, include this and note the ability to pass a CSS class and link text field:
<? do_action('gform_update_post/edit_link', array( 'post_id' => $post->ID, 'url' => home_url('/edit-company/'), 'class' => 'btn', 'text' => 'Edit Company' ) ); ?>
Follow up questions:
- Taxonomy fields (checkboxes and radio) aren’t loading or saving values.
- I would like to have conditional logic for my submit button so that when I’m adding a new company, the submit button says “Add Company” (currently does this), but when I’m editing the company, the submit button says “Edit Company”.
- Is there a way of letting only specific users (not roles, but IDs) edit a specific post/custom-post?
Thank you so much!
Forum: Plugins
In reply to: [Gravity Forms: Post Updates] Confused as to usageI’m not sure if I should start a new thread or request clarity on this one but here goes:
I’m using this (fantastic and free) plugin to edit/update a custom post type –?“company”.
– I’ve got https://site.com/add-company/ which loads my Add Company gform using a shortcode.
– I’ve got https://site.com/company/company-name/ which is the page that is created from filling out the gform.I would like to have a link at the top of my page-company.php template that lets a user edit that page by essentially loading the Add Company gform and pre-filling in all the fields with the company info that called the edit link.
Do I need to create a second gform called Edit Company? Should I be using the update shortcode in the page-company.php template?
Thanks!
Forum: Fixing WordPress
In reply to: Auto Adding Category Items to Non Category Menu ItemHi Janet,
Let me rephrase the question in a way that focuses on Core.
My nav menu should look like the following:
DOGS (/dogs/)
– Dalmatian (/dogs/featured/dalmatian/)
– Pointer (/dogs/featured/pointer/)
– Lab (/dogs/featured/lab/)
– View All Dogs (/dogs/)In this, I want all Pages that are of a certain category (“Featured”) to automatically be added to my nav menu under another top-level Page.
Thanks!