shirleenhoe
Forum Replies Created
-
Hi Hector,
Thanks so much for your prompt reply. I desperately need help as I’m not familiar with coding at all. Not too sure how to wrap the code. I believe my ex-programmer has messed up my coding. Will the changes work below? I need to add :
order_by="views" range="all" stats_views=1 <div id="popularpost"> <img src="https://womenlovebeauty.com/wp-content/themes/premiumpixels/images/popular-post.png" style="padding:0 0 0 25px;"/> <ul id="popular-views"> <?php $pc = new WP_Query('count&posts_per_page=7'); ?> <?php (order_by="views") : (range="all"); ?> <?php while ($pc->have_posts()) : $pc->the_post(); ?> <li> <div id="popular-img"><a>" title="<?php the_title(); ?>"><?php the_post_thumbnail(array(10,10)); ?></a></div> <div id="popular-cmts"> <a>" title="<?php the_title(); ?>" style="font-size:13px;"><?php the_title(); ?></a> <div class="popcmts"> <?php the_time('F j, Y') ?> . <?php comments_popup_link('No Comments;', '1 Comment', '% Comments'); ?> </div></li>
Forum: Fixing WordPress
In reply to: Error and older posts not showingHi guys,
I’m having quite the same problem as bonniehorse. Meanwhile, it could only show 1 post on the homepage and also I could only select from the ‘page’ and not from the ‘post’ section.
My settings>reading>front page displays> is being selected at ‘A static page’. But whenever I will like to change to ‘Your latest posts’, it will give me this error :
Parse error: syntax error, unexpected T_ELSE in /mnt/local/home/my-name/my-blog/wp-content/themes/3954/index.php on line 42
Need your professional help, please!