The simplest explanation is that the HTML rendered in your code does not match what you’re actually looking for. Without seeing the JS responsible for the slider, it’s impossible to say where you went wrong, but you should compare the mocked-up version (that works) with what you’re actually getting (HTML source after page render) to see if there were any typos or other potential mistakes.
Another possibility is that, although the URL to your image is correct, it has some strange character in there. Since you’re doing this within an HTML attribute, I would suggest running your echo
statement through sanitization using esc_attr()
:
<a href="#" title="Dum Slider 1" target="_blank"><img src="<?php echo esc_attr($slide_img_src); ?>" class="max-image" width="" height="" alt="Slide 1"></a>
If possible, would you mind sharing the slider code?
Related Posts:
- Custom Meta Box If Else Statement
- Display all categories including sub categories under a list ul
- Responsive loop with 3 columns inside row then 2 columns
- Foreach Loop Of Post Types With Nested If Else If Not Completing Process
- Looping through dummy posts and showing them in the main index.php
- Where does php code to load data go?
- Adding new divs with custom classes to products on WooCommerce shop page [closed]
- Custom Loop.php having a loop inside a loop
- ACF – Get ID of relationship field in flexible content
- cURL needing to loop through all “next_page”
- Display page content in different sections – based on page break block?
- Filtering custom posts by using checkboxes for taxonomy in an ajax loop always gives server 500 error
- Latest posts feed with a specific post always first
- Show the subcategory name based on current product
- How to output values from a loop into a javascript array
- WordPress Ajax filter: Create two loops for different output styles?
- How to display sticky post always at the top (before regular post) in wordpress?
- adding or removing endforeach; throws error!
- add ‘publish metabox’ to Gravity forms edit page/form area
- Return to the beginning of the results of a for loop
- How to count posts posts if they are in a separate content page?
- Unable to update the meta boxes with multiple fields
- Adding PHP to an if else loop
- Accordion headings cuts off to second line on collapsing a accordion heading (used acf repeater)
- WordPress Recent Posts – Loop
- Exclude category and post from loop in custom category.php
- ACF background-color per post in a WordPress loop
- Meta Box clears saved field content
- How can I get my pagination loop to display the correct number of total pages?
- Advertisement in Loop Posts wordpress
- How do if all posts has this category ID then do this
- Thumbnail wouldn’t scale to size properly
- ERR_TOO_MANY_REDIRECTS / To Force SSL Logins and SSL Admin Access
- How to sort (orderby) a query done by a template function before the ‘foreach’ loop?
- Date of last blog update for specific authors only?
- View tag description on page
- Making list of posts with chosen description
- Get value of submit button in custom post type
- Filter loop by ‘price’ with meta_query
- Get current_post in reverse order with pagination
- PHP for loop not working as intended
- How fix error in the WordPress loop?
- Metabox – Displaying the Value of a Metabox
- what’s the syntax for if the image exists get the image?
- Adding custom PHP to existing loop in Genesis
- How to Pass Current Taxonomy Terms into new WP_Query?
- Problems with the WordPress loop [closed]
- meta field for numerous links
- Add div after every 4 posts then every 2 posts for a responsive loop
- how to remove replicating a tag inside loop?
- My query keeps looping infinitely ! how to stop it?
- Efficient way of querying for a “fallback” post?
- Insert div after every three posts in home.php [duplicate]
- WordPress while loop with aphabetic counting like one, two, three
- Custom fields changes the formatting of metabox input
- Display product attributes for current product
- Retrieving specific images from Media Library
- WordPress AJAX load post metadata in modal
- For each 3 posts, show a different post type
- Div Missing In Custom Loop Query
- Add post class in custom loop (WP_QUERY)
- Loop 1 user randomly
- Create a hierarchical loop at predefined markup requirements
- Inline Styling a div from a Custom Metabox
- Why loop renders only last metabox from array? [closed]
- enumerating custom taxonomies?
- Loop returns more items than exist?
- Using page template to fetch posts in page
- Modify category archive page loop on functions.php
- Custom Taxonomy Link Text Echo Name Not Slug
- WP_Post is not from correct array
- Post formating on Home page
- divide custom field values in div every two values
- Create Customization Controls from Array
- Adding unique marketing messages between certain products whilst using isotope/Infinite Scroll
- Custom meta box save values issues – Deprecated: Function ereg() and more
- custom field meta-box with dropdown/autocomplete
- Display a post based on its metabox selection
- I want my wordpress loop to only display posts of the standard format
- Save data of select list after clicking save
- Automatically create a loop for post ID
- WP Knowledge Base Theme bug – Subcategories and Articles, Need to change WP_Query
- Repeatable field within repeatable group of fields
- Limit ads appearing more than three times
- Help with my first Metabox helper class
- Problems With Query and/or Template Part and/or PHP
- Two loops in one function
- Custom Meta Boxes and Fields Multicheck Issue
- If custom field doesn’t exist, or exists and it’s true show title?
- Hide sharing box and author box with a metabox on WordPress
- ACF loop and php formatting
- How to display thumbnail if post is assigned one otherwise not
- How to have post count after each listed category
- Inserting A Feed and Sidebar into an HTML Page
- How can I put a custom field as the link of a button shortcode?
- Pagination on Custom Loop
- Pagenav Not appearing on custom Template
- Error trying import one category on page
- What is the best way to get the first few post from WordPress in different divs using a loop?
- why is this content-template not showing any of my blog-entries?