Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function my_custom_gallery() {
- query_posts(array(
- 'post_type' => 'galeria',
- 'orderby' => 'publish_date',
- 'order' => 'ASC'
- ));
- while (have_posts()) : the_post();
- //code for field with image ACF
- endwhile;
- }
- add_shortcode('mygallery-1', 'my_custom_gallery');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement