[Plugin: Multisite Posts] It's Working…But I have a few customizations I'd like to make
-
I got this working in the theme template file by using this code:
<?php echo do_shortcode('[multisite_posts no="3" sit_id="1"]'); ?>
I have 2 questions:
1) Is it possible to have it show the post excerpt? Could I add a<?php echo $item['description']; ?>
perhaps somewhere in the plugin file?2) I want to be able to add some code to the actual href link. I see on line 139 you have this:
$output .= '<li><a href="' . get_permalink($post->ID). '" title="' . $post->post_title . '">' . $post->post_title . '</a></li>';
But I want to add this to the href:
onclick="return hs.htmlExpand(this, { objectType: 'iframe' } )"
which will open up the link in a modal popup window using highslide js. But whenever I try to add theonclick=
to the<a>
I get errors. Any ideas?https://www.ads-software.com/extend/plugins/multisite-posts/
- The topic ‘[Plugin: Multisite Posts] It's Working…But I have a few customizations I'd like to make’ is closed to new replies.