Is it possible to create a separate page for custom posts gallery?
Is it possible to create a separate page for custom posts gallery?
Is it possible to create a separate page for custom posts gallery?
Your page id’s ($page_id) in your array are both -1. Have you tried making them unique?
This method enables you to display the native WordPress gallery using the gallery shortcode in a custom function How to call a plugin function in footer.php You can use any WordPress or theme specific hook.
I solved it by using basically the same code, but seperate the upload code to an individual php-file. It’s not as beautiful as it could be but it works.
Heh… may I ask you what is the point of this? Because one would think that it’s to save bandwidth and shorten the time the page loads. So why would you always want to load all three of them? The display: none will NOT prevent the images from being loaded into the DOM. They will … Read more
Try replacing ‘menu_id’=> ‘nav’ by ‘items_wrap’ => ‘<ul id=”nav”>%3$s</ul>’
You’re code is not working as you have an echo within an echo, try this code (not tested) <?php echo ‘<div id = “circ” style=”background: url(‘.$src[0].’><ul><li><a href = “‘.the_permalink().'</a></li></ul></div>’; ?> If you’re echo’ing something and then you want to add php within that echo you need to break the echo by adding ‘. $variable .’
the_post_thumbnail() displays the featured image. get_the_post_thumbnail() retrieves it for use in code. Try something like this: <?php $featured_image = get_the_post_thumbnail( get_the_ID() ); $fi_src = $featured_image[‘src’]; $slider = get_the_post_thumbnail( get_the_ID(), ‘sliderimage’ ); $s_src = $slider[‘src’]; ?> <img src=”https://wordpress.stackexchange.com/questions/130312/<?php echo $fi_src; ?>” data-thumb=””<?php echo $s_src; ?> title=”” />
Contact Form loaded with Ajax
I solved by force refreshing the cache (by @passatgt). i.e., place this line after the insertion: delete_option(“{$taxonomy}_children”); Thanks!