I think I have done some metabox fields. The issue with Metaboxes is that gutenberg gets rid of using the metaboxes. You can do a custom post type that doesn't use gutenberg and you can turn off gutenberg for all post types, but a repeating field in metabox isn't a bad idea. I will add it to the list.
Thanks for sharing this nugget! Just thinking outloud here, on the html.php page you create, can you reference a separate style sheet and potentially js file (i.e. link rel stylesheet...)? Or would you not want to do that since it is technically in the body of the document? or stick with inline CSS and script tags for JS?
You can do whatever you want really. You don’t even have to call in the get_header() and get_footer() if you don’t want to. You could call wp_header() and wp_footer() just to get all the other css and js without the themes header and footer. So yes, you can call in other css and js. I should expand on that video.
Just uploaded a second part to the video that addresses your question. Template In A Plugin Part 2 | WordPress Template in a Plugin | Create A WordPress Landing Page ruclips.net/video/Eww-WJs6NXM/видео.html
Hi, I try your method but the message "Json" is already here : plugin : function shortcode() { ob_start(); include('message.php'); $data = ob_get_contents(); ob_end_clean(); return $data; } add_shortcode('testsc', 'shortcode'); ?> message.php : can you help me ?
A very powerful function that stores data in a buffer.
Thank,s for interesting video lessons! I'm you're subscriber now!:)
Awesome. Welcome. I have a lot of videos coming.
Great
Thank you... Thank you for watching and commenting.
Thanks for the tutorial. Can you teach how to create dynamic fields in metaboxes? Like a repeater field where we can add or remove fields?
I think I have done some metabox fields. The issue with Metaboxes is that gutenberg gets rid of using the metaboxes. You can do a custom post type that doesn't use gutenberg and you can turn off gutenberg for all post types, but a repeating field in metabox isn't a bad idea. I will add it to the list.
@@jherbison Thanks for the heads up. I don't want to use plugins so I wanted to learn to create a repeating fields.
Thank you!
You’re welcome. Thank you for watching and commenting.
Thanks for sharing this nugget! Just thinking outloud here, on the html.php page you create, can you reference a separate style sheet and potentially js file (i.e. link rel stylesheet...)? Or would you not want to do that since it is technically in the body of the document? or stick with inline CSS and script tags for JS?
You can do whatever you want really. You don’t even have to call in the get_header() and get_footer() if you don’t want to. You could call wp_header() and wp_footer() just to get all the other css and js without the themes header and footer. So yes, you can call in other css and js. I should expand on that video.
I see. Thank you @@jherbison
@@paulcodes You're welcome..
Just uploaded a second part to the video that addresses your question. Template In A Plugin Part 2 | WordPress Template in a Plugin | Create A WordPress Landing Page
ruclips.net/video/Eww-WJs6NXM/видео.html
@@jherbison I'll check it out now. Thank you!
Awesome 👍😎 thanks for the good job
Thank you for watching and commenting.
Hi, I try your method but the message "Json" is already here :
plugin :
function shortcode() {
ob_start();
include('message.php');
$data = ob_get_contents();
ob_end_clean();
return $data;
}
add_shortcode('testsc', 'shortcode');
?>
message.php :
can you help me ?
Can you email me the info : josh@ideapro.com
what about it? please explain.
function shortcode_func(){
ob_start();
echo 'Hello world';
return ob_get_clean();
}
add_shortcode('shortcode_name', 'shortcode_func');
That works for a trivial example. I think the video is to show a more general solution where you could do something interesting like a database query.