-
AuthorPosts
-
March 20, 2014 at 2:32 pm #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?
March 21, 2014 at 5:17 pm #241265I 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?March 22, 2014 at 3:18 am #241493Hey!
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://kriesi.at
Regards,
IsmaelMarch 22, 2014 at 11:49 am #241582In 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…
March 25, 2014 at 12:04 am #242410or is there a possibility with the “post format link” to make extern links in the search-results, rss-feeds… ?
March 26, 2014 at 9:29 am #243213Hi!
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,
PeterApril 18, 2014 at 5:15 pm #253244Hi, 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.
April 22, 2014 at 7:39 am #254205Hi!
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 -
AuthorPosts
- You must be logged in to reply to this topic.