Custom teaser
-
Hi,
* i am using UAM (user access manager) plugin. So, category.php shows the post with read more and the link to login, cause i use shortcode [LOGIN_FORM]. Login goes to wp-login.php and once i logged, it returns to category.php where i see the <read more> and the post is unlocked. I would like that login link goes directly to the post but is impossible.
* the question is: how can i put a link (permalink) at the end of the teaser? Obviously this link must not appear in post page, but only in the category php. And once i am logged it must disappear.
I am trying to work on post-template.php and i have made this:
‘if ( $more && $stripteaser && $hasTeaser )
$teaser = ”;
$output .= $teaser;
echo $accmore;’Where ‘$accmore’ is the link to post (permalink).
and at the end:‘return $output;
return $accmore = false;’But it appears above the content teaser (and not at the end), and in the post page is still remains above the content and under the title of the post.
I need to show this link to post page only when i am not logged and at the end of the teaser.I hope someone can understand the question :).
Thanks a lot!
- The topic ‘Custom teaser’ is closed to new replies.