WordPress.org

Ready to get started?Download WordPress

Forums

WP-o-Matic
[resolved] How to Enable "Post title links to source" in a template. (7 posts)

  1. n00b3
    Member
    Posted 1 year ago #

    Hello -

    When I Check "Post title links to source" it works in the default wordpress theme "Twenty Twelve". However when switch to the custom theme that I made for the site, it does not link the title back to the original source, but instead links to the post details. Can anyone tell me how to implement this functionality in the custom theme that I have?

    I tried using "Custom post template" but that did not have any change.

    Please advise.

    http://wordpress.org/extend/plugins/wp-o-matic/

  2. zondar
    Member
    Posted 1 year ago #

    NICE revision, rrauch - really professional and clear options layout !
    Beats all other plugins in the '1-post per feed item' category.

    @n00b3: Custom post template works OK here. Have you tried using

    {content}
    Go to source

    (IMHO 'Read article' is probably a better link phrase)

    @rrauch: The only mystery items here are:

    1. The string 'Go to source' appears tacked onto the end of the excerpt and is not a clickable link; clicking on the title takes visitor to the excerpt text with clickable link at the end.

    2. The option of [Open original article (source) in new window] is pretty essential; the standard target = "_blank" does not work for some reason here.

    Is there another shortcode to use for this?

    TIA

  3. zondar
    Member
    Posted 1 year ago #

    Jeez, lets try again to bypass the forum HTML rendering:

    -------------------------------------------------
    @n00b3: Custom post template works OK here. Have you tried using

    {content}
    Go to source

    ---------------------------------------------------

  4. n00b3
    Member
    Posted 1 year ago #

    Ok the custom template did work by adding a "Read Full Article" button at the end of the post. I was trying to make the post title link go to source instead of adding a button at the end.

    It would be nice to know how to do this with a custom template. Though, I told my client that's how it will work...

  5. zondar
    Member
    Posted 1 year ago #

    @rrauch, (or anyone),

    With limited time available on the client's tab, still couldn't see how
    to get the 'Go to source' link to open source in a new window.

    Could you elevate the plugin from 99% perfect to a 'perfect 100' by revealing how to do it?

    Many thanks

  6. CouponCodePlugin
    Member
    Posted 1 year ago #

    Hello, there are two issues with opening links in new windows.

    First, we have the coding used within the options tab of the campaign.
    I use the following to create the link so it opens in a new window:
    <a href="{permalink}" target="_blank" title="{title}">{title}</a>
    This way the permalink is inserted into the coding. I assume you are using it differently so that it generates the entire link which would be default and would not open in a new window. We then have the title being generated as the title for the link as well as for the text that is linked.

    Secondly, we have the content. What if the content contains a link? You can not set it to open in a new window. I use a plugin for wordpress that allows it to set all external links to open in a new window. This way I know that it is opening all links within the content are opening in a new window and not taking people away from the site.

    Here are some plugins I use to help the whole process:

    Auto Prune Posts - Automatically removes posts from a category that are more than x days old. This prevents the site from becoming too large. Also, the site I use it on which is OnlineTechJobs.net lists jobs which expire, so I do not want them on my site.

    Auto Tags - This automatically tags the posts as imported posts will not normally be tagged.

    Open External links in a new window - This plugin does what it says and opens external links in a new window or tab. http://wordpress.org/extend/plugins/open-external-links-in-a-new-window/

    Hope this helps. Let me know if I can assist further.

  7. zondar
    Member
    Posted 1 year ago #

    @CouponCodePlugin,

    Many thanks - very professional and helpful you are.

    Have just tested Wp-o-Matic on another site and it behaves 100% - will
    have to investigate original site for conflicts.

    We have used Open External links in a new window elsewhere - very useful plugin.

    Cheers
    Zondar

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic