Archived topic
about input field
7 replies · Started by bruce on September 28, 2022
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.
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.
hello Fernando,
i do not know how to realize it.
gp has input function ?
thanks.
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.
hello
this php can query the post title,but can not delete and rewrite.
thanks.
What exactly are you wanting to retrieve?
ok now.
thanks.
You're welcome Bruce!