WordPress.org

Ready to get started?Download WordPress

Forums

Promotion Slider
how to show "name" or "description" in theme? (5 posts)

  1. ps3hero
    Member
    Posted 3 years ago #

    how can i output these things in my theme? i am using twentyten. under "name" in the admin panel stands "this will be shown on the website" but it is not there … ?

    http://files.droplr.com/files/19876761/bAi5.Bildschirmfoto%202011-04-05%20um%2017.50.40.png

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    is this what you are looking for:

    in category archive pages:

    single_cat_title()
    http://codex.wordpress.org/Function_Reference/single_cat_title

    category_description()
    http://codex.wordpress.org/Function_Reference/category_description

    i have no idea about this in connection with your plugin.

    example?
    link to your site?

  3. Micah Wood
    Member
    Plugin Author

    Posted 3 years ago #

    You can display a category-specific slider by using the shortcode in a similar fashion as below:

    [promoslider category="my-category"]

  4. ps3hero
    Member
    Posted 3 years ago #

    no, i just want to show the "category" and the "description" like here:

    http://files.droplr.com/files/19876761/X96f.desc.jpg

    that i have entered in the promoslider options:

    http://files.droplr.com/files/19876761/n9yL.Bildschirmfoto%202011-04-08%20um%2010.15.58.png

    this is my shortcode:

    <?php echo do_shortcode('[promoslider height="500px" width="940px"] ')?>

  5. ps3hero
    Member
    Posted 3 years ago #

    i finally made it. i have put the "[promoslider category="my-category"]" code in an article and loop this article in my template …

    <div class="aktuell cf">

    <?php
    global $myPosts;
    $myPosts = '';
    ?>
    <?php
    $my_query = new WP_Query();
    $my_query->query('showposts=1&cat=25&orderby=date');
    if ($my_query->have_posts()) : while ($my_query->have_posts()) : $my_query->the_post();
    $myPosts .= $post->ID . ",";
    ?>

    <div class="cf" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

    <?php global $more; $more = 0; ?>

    <?php the_excerpt(); ?>
    <?php the_content(); ?>

    <h2> " title="<?php the_title(); ?>">
    <?php the_title(); ?>
    </h2>

    <!--kasten zu-->
    </div>
    <?php endwhile; endif; ?>
    </div>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic