• function fp2_my_custom_text_field( $thispost, $tmp_task_new, $fpost_sc_parms) {
    echo “<P>AHA!”;
    }
    add_action( ‘frontier_post_form_standard_init’, ‘fp2_my_custom_text_field’, 10, 3 );

    doesn’t produce any text on the page.

    Action: frontier_post_form_standard_init (file: frontier_post_form_standard.php)
    From v.5.1.6
    Allows insert of html, fires just after form is defined, before fields – Passes 3 variables
    $thispost: Post object for the post
    $tmp_task_new: Equals true if the user is adding a post
    $fpost_sc_parms: Shortcode parameters

    implies it can insert HTML.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author finnj

    (@finnj)

    Hi,

    Sounds strange – Do you get any errors

    Try and remove <P>

    see example of custom fields: https://wpfrontier.com/frontier-post-custom-fields/

    Thread Starter ricks03

    (@ricks03)

    I don’t get any errors. The text just doesn’t show up. My plan is to do something more complicated, but when it wasn’t working a reduced it down to this simple example because I was trying to limit variability for you.

    I have multiple custom fields working via frontier_post_form_standard_top . However, frontier_post_form_standard_top doesn’t have access to $fpost_sc_parms while frontier_post_form_standard_init does.

    My first attempt was without the “<P>”. I added it troubleshooting from the other direction ?? Have also removed the “!”. Still don’t get the text to appear.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘frontier_post_form_standard_init broken’ is closed to new replies.