Add image to gallery with slug

https://codex.wordpress.org/Gallery_Shortcode By default the gallery shortcode will only accept IDs or if left blank will default to current page. You need to create a plugin and register your own shortcode or download one that already exists. https://www.google.co.uk/search?q=gallery+load+by+url+wordpress&oq=gallery+load+by+url+wordpress&aqs=chrome..69i57.9981j0j4&sourceid=chrome&ie=UTF-8

Implementing Lightbox Photo Gallery in

I got the answer from someone else and got it working. To summarize, the problem was not having the right use of WP functions to call the custom post thumbnail image dynamically. Hence the BueggetteBox.js plugin (a lightbox plugin) functionality would work properly when you clicked on a custom post thumbnail from the gallery within … Read more

Native gallery custom html output

Is this what your looking for, here? get_post_gallery_images(). This is the example for that page. add_filter( ‘the_content’, ‘wpdocs_show_gallery_image_urls’ ); /** * Show image URLs below the content */ function wpdocs_show_gallery_image_urls( $content ) { global $post; // Only do this on singular items if( ! is_singular() ) return $content; // Make sure the post has a … Read more

hide attached images of a post

My first recommendation would be to use Advanced Custom Fields to setup a gallery rather than using this method. However, I think you may be able to load your images using Add Media -> Create Gallery which will add a shortcode to your post content You could then use the_content filter and strip_shortcodes to remove … Read more

core/gallery get figcaption text

You’re right…the figcaptions are encoded as html in $block[‘innerHTML’]. You could do sth. like $tmpArray = explode(‘</li>’,$block[‘innerHTML’]); before your foreach loop to split the HTML string into an array that matches your gallery items and inside the loop strip_tags($tmpArray[i]); to strip away all html tags and only get the text string inside <figcaption></figcaption>. You’ll only … Read more

WordPress WebSite is jumps while scrolling bottom [closed]

You have some css that is conflicting and causing the issue when the top menu sticks absolute on scroll down and the header hides. In your media.css on line 340 you have: @media (min-width: 768px){ .main-navigation { clear: both; display: block; float: left; width: 100%; } } Changing that in live dev tools to: @media … Read more

display post format text in loop

get_post_format() returns the post format slug for either the current post, when used inside a loop, or a given post, when a WP_Post object or an integer post ID is passed to it as a parameter. So, if you’re using the function in a posts loop, then you can use it like this, while ( … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)