Support » Plugins » [Plugin: WPSMF] Link to Forum Topic not Included

  • Resolved zach21uk

    (@zach21uk)


    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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());
        }
    ?>

    Sorry – Thanks!

    sammyboy405

    (@sammyboy405)

    Is there a way to do this in the loop.php so it shows up in maybe the excerpts?

    sammyboy405

    (@sammyboy405)

    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

    (@schattenmann)

    is virtual impossible to do everything everyone wants so…glad you found a way around ^^

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WPSMF] Link to Forum Topic not Included’ is closed to new replies.