Forums

El Aleph "Add to Favorites" not working (3 posts)

  1. phases
    Member
    Posted 1 year ago #

    Greetings -
    I installed El Aleph and generally have been able to get everything to work.
    The one exception is the favorites function.
    in single.php I added

    <?php aleph_the_taxonomy_link('author-favorites'); ?>

    but nothing shows up when I view a post.

    Any ideas?

    Here is the full code:

    <?php get_header(); ?>

    <!-- Page (left column) -->
    <div id="page">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div id="page-title">
    <h2><?php the_title(); ?></h2>

    <p class="date">
    <?php the_time('l, m. j. Y'); ?>  – 
    Category: <?php the_category(', '); ?>

    Swatch by <?php aleph_the_author_profile_link(); ?>  |  "><?php the_author_url(); ?>

    <?php aleph_the_taxonomy_link('author-favorites'); ?>
    </p>
    </div> <!-- /page-title -->

    <div id="page-content">
    <?php the_content('Read the rest of this entry »'); ?>
    <?php the_tags( '<p>Tags: ', ', ', '</p>'); ?>
    <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
    </div> <!-- /page-content -->

    <div id=postNav>
    <div id=previous><?php previous_post('« « %', '', 'yes'); ?> </div> <!-- /previous -->
    <div id=next> <?php next_post('% » » ', '', 'yes'); ?></div> <!-- /next -->
    </div> <!-- /postNav -->

    <div id=footAds><!-- ads -->
    <h4 class="hx-style01"><span>ads go here</span></h4>
    <?php if (function_exists('dfrad')) { echo dfrad('foot'); } ?>
    <!-- end ads --> </div>

    <?php comments_template(); ?>

    <?php endwhile; else : ?>

    <h2>Not Found</h2>
    <p>Sorry, but you are looking for something that isn't here.</p>

    <?php endif; ?>

    </div> <!-- /page -->

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

  2. phases
    Member
    Posted 1 year ago #

    Ah ha!
    It does not display on the post, if you are logged in as the post author. (just logged out to test another function and saw the Add to Favorites.

    So the question is..... is there a way to have "add to favorites" for users, and the author?

    The site is a reference site, and authors may want to "favorite" their own posts.

  3. tazme
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags