Transitioning Laravel App into WordPress (Portfolio Website)

Custom Post Type is always a preferable approach. To display all the projects in custom page template you need to learn few concepts for WP. 1.custom page template (To display your custom content) 2. WP_Query ( Fetch custom post type data with lot of advance query). For your reference please find the below documentation. https://developer.wordpress.org/reference/classes/wp_query/ … Read more

Get first level children of a page ID

As per the get_pages() documentation: ‘child_of’ (int) Page ID to return child and grandchild pages of. ‘parent’ (int) Page ID to return direct children of. Default -1, or no restriction. So to get immediate children of a specific page, you would use the parent arg and not child_of. $pages = get_pages( array( ‘parent’ => $pageID, … Read more