adding code to back end

  • Author
    Posts
  • #1154608

    ketosproject
    Member

    hello! I need to change a bit of coding in the back end of my theme in order to display only certain category for some pages. I can do that only by accessing the codes, but there is no choice in this new wordpress. I want to use this following code in the new pages that i am creating, so to trigger only certain posts/category:
    <?php query_posts(‘category_name=CATEGORYNAME&showposts=5’);
    while (have_posts()) : the_post();
    // do whatever you want
    ?>
    <b>” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?>
    <?php
    endwhile;
    ?>

    could you help me with this? thanks

    The blog I need help with is woodenleg.me.

    #1154704

    1tess
    Moderator Emeritus

    You won’t be able to do that on wp.COM
    Did you know that there are very different kinds of WordPress?
    http://en.support.wordpress.com/com-vs-org/
    One cannot access php here. You’d have to host your site somewhere then use software and themes from wp.ORG

    #1154705

    1tess
    Moderator Emeritus

    On second thought, I’m not exactly sure what you want to accomplish but this shortcode might be of use:
    http://en.support.wordpress.com/display-posts-shortcode/

    #1154706

    1tess
    Moderator Emeritus
    #1154717

    ketosproject
    Member

    I guessed so…
    thanks Tess, useful tip!

    #1154719

    1tess
    Moderator Emeritus

    You are welcome.

    I have not had time to experiment with that shortcode, nor do I quite understand what you hope to do, but it might work very well on a page which you could link in a custom menu…but if that works, then
    the price is right.
    Yes?
    (sorry: old U.S. TV show pun ≥^!^≤)

The topic ‘adding code to back end’ is closed to new replies.