• I’m trying to find out if there’s a plugin to do a very specific task I’m thinking of. Calling it an “aggregating” plugin isn’t quite right, so hear me out.

    Many websites (usually news sites) have headlines and/or post previews on their front page that actually link to another site. So it looks exactly like you’re about to click on that site’s post, but it goes to another site. The Huffington Post, for example, does this all the time.

    Is there a way to do this in WordPress? Essentially, I’d like to be able to create a post and put in a headline and excerpt, but have it link somewhere else. Could this be a post type perhaps?

Viewing 1 replies (of 1 total)
  • tcama,

    What you could do is use a custom field for this “custom URL”. Something like this:

    <?php
    if( get_post_meta( $post->ID, 'customurl', true ) ) {
        $link = get_post_meta( $post->ID, 'customurl', true );
    } else {
        $link = get_permalink();
    } ?>
    <h1><a href="<?php echo $link; ?>"><?php the_title(); ?></a></h1>
Viewing 1 replies (of 1 total)

The topic ‘Plugin for aggregating?’ is closed to new replies.