You have a nested anchor tag. I have never seen that done before. You are wrote this with your code
<a href="#"><a href="#"></a></div></div></a>
I would think that is your problem. Why do you need this first anchor tag?
?php
while ($postsSlider->have_posts()) : $postsSlider->the_post();
if ($first) {
?>
<a class="foto_link" href="https://wordpress.stackexchange.com/questions/290742/<?php the_permalink(); ?>">//should this be here
Take out that anchor tag and see what happens
Related Posts:
- custom shortcode will not display the wrapped content
- Multiple WordPress Menus that will only display all pages
- WordPress Multiple Navigation bars
- Using Select HTML in Bootstrap Popovers
- Add class to group inner container
- WordPress style.css not updating, only after theme reload
- My website is not showing Footer section
- Handling repeater data
- Posts are not looping through correctly
- Get the featured image url of clicked post
- Why in this WordPress theme I can’t see the Main Menu?
- Search AJAX Filters – Multiple Query Loops Into One Loop (Optimization)
- WordPress navigation wont appear with wp_head
- Bootstrap 4 Carosuel with ACF Repeater field
- How to Create Carousel Indicators in PHP Loop using wp_get_attachment_url function?
- Split post or page content in two or more columns
- Gutenberg blocks shortcodes compatibility
- How to bind each “the_content” elements to a custom variables
- Check If bootstrap last column is even or odd (using ACF custom field)
- custom post type not showed with bootstrap 4 modal and template part
- Posts in two different columns Bootstrap
- PHP code printed into CSS classes
- From php web to wordpress conversion, href changes only in URL
- Bootstrap Carousel Indicators Won’t Cycle On Custom WordPress Theme
- making a search.php query
- Use PHP code in Menu Admin Section
- Problems with the WordPress loop [closed]
- Custom Thumbnails [closed]
- Retrieving specific images from Media Library
- add class to background image
- add bootstrap modal after login in wordpress
- How to display thumbnail if post is assigned one otherwise not
- Display WP posts in 3 responsive columns
- How to echo a different field if another field is empty?
- Go Back to Previous Page
- How to get URL of current page displayed?
- what is the use of /wp-includes/SimplePie?
- Need help setting default setting value for radio button in theme customizer
- How to automatically apply woocommerce product title to all product images alt tags?
- How to store the_title() into a variable to reutrn the value, not just echo it
- exclude multiple terms using get_terms() function
- Create a global variable for use in all templates
- PHP 5+ stream wrappers with the underlying WordPress File API?
- Why is my custom meta box input not saving
- Dynamic URL to reference custom PHP files
- How to auto login user again after change user_login
- WordPress Shortcode and Dynamic CSS
- Current post’s author name in the author meta tag
- How to Use the Function is_user_logged_in To Display Different Menus?
- WP_Query | Help me create a search term with an ‘OR’ relation?
- Replacing a specific menu item
- Add value to usermeta without removing previous values?
- Duplicate domain database to local – How?
- How can I call a row of user specific data from a custom table added to the WP Database
- Creating a WordPress shortcode
- Data fetch and delete by ajax request
- How to upload a media file via FTP and then create an attachment post with it?
- Find variables available at a given hook
- Gutenberg custom block using only register_block_type() and HTML
- Keep salts when moving a site?
- Can I view my own wordpress php source code on my hosted web server?
- Creating a new page and automatically associating it with a template in WordPress
- Why WordPress uses `endwhile;` inside the templates?
- Theme url in all plugin pages
- Upgraded to php7.0, now ssh updates don’t work [closed]
- How do I dynamically generate args for wp_query?
- How to add a dynamic javascript snippet to the footer that requires jQuery
- Add before_content and after_content to register_sidebar
- Add WordPress to Meteor js site
- How to access function from outside of a class within this class in WP plugin?
- Add relevant tag to search results
- Get most recent media upload
- Colorbox ajax loading of outside HTML content works perfect on localhost but not on server
- Order posts randomly, not by date
- How can I get the page or post language when I use wpml? [closed]
- Get different images for mobile and desktop with php, advanced custom fields without using js and ajax
- How to update wp-config file in Docker
- Simple Plugin with custom javascript wont work – no console error
- Using file_get_contents with Gravity Forms uploads folder to create images in the media library returning false
- Transferring working local PHP site to wordpress – with database (MySQL)
- Redirect to a different page through registration, depending on page
- Creating a related post section based on similar categories
- How do I dynamically populate a shortcode with a variable from URL?
- WP Walker using custom css classes
- Custom profile field with birthday. Troubles with
- Using loop pagination on single.php
- How do I retrieve meta_key names with get_user_meta($user_id) call
- Use custom post type for a store locator
- Javascript file is not working on single.php wordpress [closed]
- Ordering users by custom user meta
- WP CRON duplicate wp_insert_post with has < and > tag
- How to send Ajax request from my plugin in admin dashboard?
- Make a list of sites for each user in WPMU – switch_to_blog (display in SITE_ID: 1)
- Programmatically create page when saving custom post type post
- Do not execute If User is login as Administrator or any Specific Role
- Output Video Download Link in template
- Display category name only once inside loop
- AJAX success response is not working but it’s saving my changes
- How to change menu order item
- Best practice for show data to one specific user?