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?
- Disable Attachment Pages Completely
- Get meta_id along with meta_key and meta_value
- Enable/disable post revisions programmatically
- Use WordPress Text Editor in non-wp page
- How can I add a specific, custom widget to my theme’s header.php?
- Mysterious HTTP 404 header in my own scripts
- Change WordPress default registration error text [Error: This username is invalid because it uses illegal characters. Please enter a valid username.]
- How to make custom total price reactive in navigation
- Adding tawk.to code just before body tag on functions.php file
- PHP to Programatically delete a file
- Instantiate class to be available to all plugin functions
- Implement toggle switch for theme options in settings API
- ACF: how do I get the fields and its values of a specific group?
- Trying to place a custom field after the total section in the checkout page in woocommerce
- How WordPress reacts to a lack of memory of the server [closed]
- Adding a widget function into the php theme file
- PhantomJS with wordpress
- Call to undefined method – Download Monitor
- Why does abstracting html from plugin code result in loss of access to wordpress functions?
- Separation of presentation and code – WordPress
- Undefined method class::construct() when creating a plugin
- Live to Local on MAMP, not working, outputting functions.php code
- Remove extract from function
- Undefined offset: 3 in custom function
- Redirecting to a custom forgot password page
- How to pass current loop data into nested loop
- How to reference PHP in Javascript
- Shortcode function doesnt work without caption
- Fatal errors to undefined function in theme 404.php file [closed]
- How to get the slug of the homepage when editing it in WP admin?
- wordpress admin part is not accesbile after server shifting
- making php value numeric
- the_meta – no get_the_meta query?
- WordPress: Displaying all the post tags from within a specific taxonomy’s term
- how to insert content into my taxonomy
- update_term_meta() only updating once on certain meta keys
- Cannot find the php_ini configuration file to find my error log to see why my code is not working
- Using a new WP_Query inside the loop
- How to Send Pingbacks for all Posts in WordPress?
- Has a PHP update given me a 404?
- How to find and delete a menu item in php?
- Using zip code to display custom data in Admin Order Details
- Rewrite rule not working, but only when parameter is text
- Post permalink buttons all going to the first post
- wp_ajax_ 400 Bad Request
- Looping over an array of URL end points
- WordPress Ajax filter: Create two loops for different output styles?
- How to display sticky post always at the top (before regular post) in wordpress?
- PHP warning with code for nav menu walker [duplicate]
- How to call a function from functions.php with ajax?
- Showing wordpress latest post thumbnails in slider with auto increment
- media_handle_upload fails with gravity form submitted image
- My function echos only “array”
- Notify admin (by email) if post added with specific tag
- Limit Taxonomy Parents
- Migrate php folder to WordPress
- See output of a sql query while plugin installation in wordpress
- Trying to fix multiple category drop down
- How can I execute $string = if();? [closed]
- Options.php loop won’t show!
- Infinite Scroll Plugin: How to first show 6 posts and then 2 posts thereafter with Infinite Scroll Plugin?
- REST API custom endpoints for metaboxes
- How to sort search result by post_title, then by post_content
- Custom Admin Menu Report for Specific User ID
- how can i link threejs in my functions.php file in understrap theme
- WordPress / PHP: Check if column has value and then check if value in array