WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: WPSMF] Link to Forum Topic not Included (6 posts)

  1. zach21uk
    Member
    Posted 4 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

  2. SchattenMann
    Member
    Posted 4 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());
        }
    ?>
  3. zach21uk
    Member
    Posted 4 years ago #

    Sorry - Thanks!

  4. sammyboy405
    Member
    Posted 4 years ago #

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

  5. sammyboy405
    Member
    Posted 4 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.

  6. SchattenMann
    Member
    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags