[Resolved] about input field

Home Forums Support [Resolved] about input field

Home Forums Support about input field

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2357229
    bruce

    hello please see this url http://www.rovathin.com/detailpro.php?id=64

    and please see the pic

    this function i know can use gp Dynamic options with post meta can query the post title.

    but how to let it in the input field ,and the title also can delete rewrite other titles.

    thanks.

    #2357246
    Fernando
    Customer Support

    Hi Bruce,

    Is that table from a plugin? If you can place a GB Headline Block inside that, then you should be able to use the Dynamic features.

    Otherwise, you might need custom code to do that.

    #2357276
    bruce

    hello Fernando,

    i do not know how to realize it.

    gp has input function ?

    thanks.

    #2357319
    Fernando
    Customer Support

    No, GP doesn’t have such a function.

    You can try adding a Shortcode:

    function page_title_func( ){
    	    ob_start();
        // Start your PHP below
      
        echo '<h3>' . get_the_title() . '</h3>';
      
        // End your PHP above
        return ob_get_clean();
    
    }
    add_shortcode( 'page_title', 'page_title_func' );

    Adding PHP: https://docs.generatepress.com/article/adding-php/#code-snippets

    Then, add [page_title] inside you table.

    #2357336
    bruce

    hello

    this php can query the post title,but can not delete and rewrite.

    thanks.

    #2357354
    Fernando
    Customer Support

    What exactly are you wanting to retrieve?

    #2357410
    bruce

    ok now.

    thanks.

    #2358498
    Fernando
    Customer Support

    You’re welcome Bruce!

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.