Author: Lloyd Mangin
How to make a custom patterns?
register_block_pattern( string $pattern_name, array $pattern_properties ) This is how to registered a custom block pattern. Copy and paste the code above, to functions.php The ‘content’ is where we can put or write the design layout of the pattern, this is how to get code on the page editor. see the screenshot below.
How to display all the child of the parent page
Parameter: ‘child_of’ – (int) Page ID to return child and grandchild pages of. ‘exclude’ – (int[]) Array of page IDs to exclude. ‘sort_column’ – (string) What columns to sort pages by, comma-separated. ‘sort_order’ – (string) How to sort retrieved pages. Accepts ‘ASC’, ‘DESC’. For more information about the get_pages function, you can visit here. $args = array( ‘exclude’ => […]