Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #240699

    I have a problem with the “Post Format” Link.

    When somebody come to a link-post he is coming to the post and have to click to the title to get to the link. Is it possible that the post redirect automatically to the link?

    So everybody how comes to the single-blog-post gets redirect to the given link?

    #241265

    I have now added <meta http-equiv='refresh' content='0; URL=$link'> to includes/helper-post-format.php ($current_post['content']).

    Is it possible to add <meta http-equiv='refresh' content='0; URL=$link'> in the head?

    #241493

    Hey!

    The link formatted posts should automatically link to the specified url. Make sure that you added the link on the text editor like this for example: http://www.kriesi.at

    Regards,
    Ismael

    #241582

    In the grid-view the links are ok, but in the search results and rss-feeds you come to the single-post. so a user have to click twice to come to the extern site…

    #242410

    or is there a possibility with the “post format link” to make extern links in the search-results, rss-feeds… ?

    #243213

    Hi!

    Open up wp-content/themes/enfold/includes/loop-search.php and replace:

    
    $post_format 	= get_post_format() ? get_post_format() : 'standard';
    

    with

    
    	$current_post = array();
    	$current_post['the_id']	   	= get_the_ID();
    	$current_post['post_format'] = get_post_format() ? get_post_format() : 'standard';
    	$current_post['content'] 	= get_the_excerpt();
    	$current_post['content'] 	= empty($current_post['content']) ? strip_shortcodes( get_the_content() ) : $current_post['content'];
    	$current_post['title']   	= get_the_title();
    	$current_post	= apply_filters( 'post-format-'.$current_post['post_format'], $current_post );
    	extract($current_post);
    

    and replace:

    
    echo "<h2 class='post-title entry-title'><a title='".the_title_attribute('echo=0')."' href='".get_permalink()."' $markup>".get_the_title()."</a></h2>";
    

    with

    
    echo "<h2 class='post-title entry-title'><a title='".the_title_attribute('echo=0')."' href='".get_permalink()."' $markup>".$title."</a></h2>";
    

    Best regards,
    Peter

    #253244

    Hi, I’m following up on this “Post Format” Link post, the link is working fine on the title of the post but also linking to the post itself on the Post Thumbnail.

    #254205

    Hi!

    If you want to change the preview image link open up and replace:

    
            //default link for preview images
            $link = get_permalink();
    

    with

    
            //default link for preview images
            $link = !empty($url) ? $url : get_permalink();
    

    Cheers!
    Peter

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.