Wordpress and Webdesign Forum go41 » WordPress Code Snippets

  1. My boss has decided that she wants the Featured section to be changed to different categories (Faculty, Students, Community) and wants those words to appear instead of the post's actual title.

    Is there an easy way to do this? When I removed the line of code I suspected to be responsible for it (renamed to info2), it broke some other things:


    <div class="info2">" rel="bookmark" class="title"><?php the_title(); ?>

    Here is the current website (a work in progress!): http://www.lisuncg.net

    Posted 1 year ago #
  2. you have to duplicate the query and loop of your current featured category section.
    Displaying one latest post of four categories you need actually four loops.
    In each loop you set the category you want to display and set the number of posts to one.
    this php the_title you removed just shows the title of each post.
    You could use <?php the_category() ?> instead, this will list the categories of the post and link it to a category view.

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Join us! or log in (lost password?):