In the root of your project, add .gitlab-ci.yml
with the configuration below.
image: node:latest
stages:
<?php | |
add_filter( "gppa_input_choices", "gppa_populate_featured_image_choices", 100, 3 ); | |
function gppa_populate_featured_image_choices( $choices, $field, $objects ) { | |
if ( ! property_exists($field, 'imageChoices_enableImages') || ! $field->imageChoices_enableImages ) { | |
return $choices; | |
} | |
$i = 0; |
export const GoogleApi = function(opts) { | |
opts = opts || {} | |
const apiKey = opts.apiKey; | |
const libraries = opts.libraries || []; | |
const client = opts.client; | |
const URL = 'https://maps.googleapis.com/maps/api/js'; | |
const googleVersion = '3.22'; | |
let script = null; |
<?php | |
// loop through the sub-pages of your custom post type | |
$childpages = new WP_Query( array( | |
'post_type' => 'work', | |
'post_parent' => $this_page, | |
'posts_per_page' => 100, | |
'orderby' => 'menu_order' | |
)); | |
while ( $childpages->have_posts() ) : $childpages->the_post(); ?> |