Forums

Can't get "Featured Article" section to work in my template - NEED HELP (1 post)

  1. Netodon1
    Member
    Posted 1 year ago #

    I'm somewhat of a novice at all this and really could use some help. I've gotten everything to work on a template/theme I downloaded, but can't get in contact with the designer.

    I think it's simple for a more experienced person and this is a pro bono effort on my part.

    The website is http://www.phozam.com

    The "featured article" section is in the bottom left of the site.

    I believe the correct code is in the footer.php file

    <div class="seprator2"></div>
        <div class="wrapper">
        	<div class="footCol">
            	<div class="col">
                	<h2>Featured Articles</h2>
                    <ul class="catListingF">
                    	<?php
    					$my_query = new WP_Query("meta_key=post_featured&meta_value=1&showposts=" . footLinks);
    					if ($my_query->have_posts()){
    					while ($my_query->have_posts()) : $my_query->the_post();
    					?>
    					<li><a href="<?php the_permalink()?>" title="<?php the_title()?>"><?php echo substr_ellipse(get_the_title(), 30); ?></a></li>
    					<?php endwhile;
    					}else{
    					?>
                        <li><a href="#" title="No Featured Article">No Featured Article</a></li>
                        <?php
    					}
    					?>
                    </ul>
                </div>
                <div class="col col2">

    I'm not sure if the code is wrong, or if I just don't understand how to interface with it via the WordPress dashboard...

    Thanks in advance for any help and suggestions!

Topic Closed

This topic has been closed to new replies.

About this Topic