Images not showing in slider
-
Images are not showing in the slider before users login. After the login everything is ok. I search a little and understand that the plugin locks all the content (including images), so when the theme requests for img src the src i filled with text from the plugin and not the image link. I believe that the problem is here :
<div class=”slide clear”>
<div class=”post”>
<?php if (has_post_thumbnail()) echo ‘‘.get_the_post_thumbnail($post->ID, ‘slide’,
array(
‘alt’ => trim(strip_tags($post->post_title)),
‘title’ => trim(strip_tags($post->post_title)),
‘test’ => trim(strip_tags($links->link_url)),)).’‘; ?>
I add the ‘test’ => trim(strip_tags($links->link_url)) , if i put the $post->post_title or $post->post_content ,it fills test with title or content of the post, i don’t know how to fill it with image src?
i don’t know how to strip everything except the image src?
any help?
- The topic ‘Images not showing in slider’ is closed to new replies.