Title: Improving
Last modified: September 4, 2020

---

# Improving

 *  [ricks03](https://wordpress.org/support/users/ricks03/)
 * (@ricks03)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/improving-2/)
 * Using the function frontier_post_form_standard_top you can create custom fields
   to display when creating (or editing) a post type.
 * However, you might want specific fields to appear (or not) when editing different
   post types or categories.
 * In theory, you should be able to do this with frontier_post_form_standard_top
   by reading in the shortcode parameters, to make decisions. However, frontier_post_form_standard_top
   only includes $thispost and $tmp_task_new, where you need $fpost_sc_parms
 * To do this, I added $fpost_sc_parms as an additional value passed to frontier_post_form_standard_top
   on line 77:
    `do_action('frontier_post_form_standard_top', $thispost, $tmp_task_new,
   $fpost_sc_parms);`
 * Then modifying the example for custom code to:
 *     ```
       //* Add custom fields to Frontier Post
       function fp_my_custom_text_field( $thispost, $tmp_task_new,$fpost_sc_parms) {
       ...
       }
       add_action( 'frontier_post_form_standard_top', 'fp_my_custom_text_field', 10, 3 );
       ```
   
 * This will break OFC with the next update. Sadly, I’m good enough to figure out
   this change, but not to fix it outside of the code.
 * I hope this is of some use to anyone, and perhaps will get added to a future 
   release.
 * With this change, I can make my custom fields appear or not by checking values
   set in the parameters of the shortcodes.

Viewing 1 replies (of 1 total)

 *  Plugin Author [finnj](https://wordpress.org/support/users/finnj/)
 * (@finnj)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/improving-2/#post-13360857)
 * will have a look at, although I am carefull about changing existing triggers

Viewing 1 replies (of 1 total)

The topic ‘Improving’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/frontier-post_c8b8b0.svg)
 * [Frontier Post](https://wordpress.org/plugins/frontier-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/frontier-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/frontier-post/)
 * [Active Topics](https://wordpress.org/support/plugin/frontier-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/frontier-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/frontier-post/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [finnj](https://wordpress.org/support/users/finnj/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/improving-2/#post-13360857)
 * Status: not resolved