Hi serinak, could you post a link to the slideshow you’re working on so I can see what the slide links look like?
It’s actually on a pvt network right now… I want to fix the slide links, because they are on the home page, before we go live. The links are all correct, I have many links on the site and know how it’s done 😉 it may be a filter in the theme? But I cant seem to find anything, I guess you cant really help if you cant see the site right?
Yeah, it could be a filter, are the links being changed on the frontend from what you entered in the slide posts? Can you post one of the links as it appears on the frontend? What theme are you using?
Yes, I put a link to the correlating post: /index.php/name-of-post/ and it changes to: blog.network.pvt/?slide=604
I am using Mantra 1.9.4
I tested the links with Mantra and it worked alright. Did you add the link just like that? “/index.php/name-of-post/”, try using the complete link like: “http://www.example.com/name-of-post/”
I have done that as well, I also tested it using links to other sites, nothing seems to work. Maybe I will try rebuilding the slideshow… I used the same slideshow on another site and it worked fine, I cant figure it out
Do you have any other plugins installed? Try deactivating them and testing it. It does look like a filter though, just not sure where it is.
Tried that also, it must have been a filter problem, an IT guy at the office added this code to the plugin and now the links work again.
<div class="mslide mslide-<?php echo $meteor_count; ?>">
<?php // Adds slide image with Slide URL link
if ( get_post_meta( $post->ID, "slide_url_value", $single = true ) != "" ): ?>
<a>ID, "slide_url_value", $single = true ); ?>" title="<?php the_title(); ?>">
<?php $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'featured-slide', false, '' );?>
<img width="<?php echo $src[1];?>" height="<?php echo $src[2];?>" class="attachment-featured-slide wp-post-image" src="<?php echo $src[0];?>" title="<?php the_title(); ?>" /></a>
<?php // Adds slide image without Slide URL link
else: ?>
<?php the_post_thumbnail( 'featured-slide', array( 'title' => get_the_title() ) ); ?>
<?php endif; ?>
</div><!-- .mslide -->
[Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code has now been permanently damaged/corrupted by the forum’s parser.]
Can’t tell exactly what was changed with the code you posted getting broken. I’d be interested in seeing how you solved it if it helps avoid other filters breaking the links in the future.