zach21uk
Member
Posted 2 years ago #
Hi,
I just installed this mod on my new WordPress website, and it is working great for the most part.
When I make a post on WordPress, it gets posted into my SMF Forum.
1 problem though. A link is not being included on the bottom of the WordPress Post, to the forum topic, even though specified in the admin area "SMF Link Text: Comment on our forum"
This text does not appear on the post - any ideas?
Thanks
Zach
SchattenMann
Member
Posted 2 years ago #
read the install guide pls
(Optional) If desired post the following on you template single.php to display SMF Link Text
<?php
if (function_exists(myWPSMF_link_to_smf)){
myWPSMF_link_to_smf(get_the_id());
}
?>
zach21uk
Member
Posted 2 years ago #
sammyboy405
Member
Posted 2 years ago #
Is there a way to do this in the loop.php so it shows up in maybe the excerpts?
sammyboy405
Member
Posted 2 years ago #
found it for those who want to know.
In the loop.php (this is using the default template)
` <div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?><?php if (function_exists(myWPSMF_link_to_smf)){
myWPSMF_link_to_smf(get_the_id());
}?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>`
That will put the link to the forums at the bottom of each excerpt on the Main index page.
SchattenMann
Member
Posted 2 years ago #
is virtual impossible to do everything everyone wants so...glad you found a way around ^^