brianrenew
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Sidebar: Multiple Categories but only show 1I still haven’t been able to figure this out. Can anyone help?
Forum: Fixing WordPress
In reply to: Sidebar: Multiple Categories but only show 1Thank you so much for the link. I feel that it will come in handy with my newbie PHP struggles.
However, in the mean time, can you please help me get started with the structure of my statement. I want something like this (but in PHP of course):
if page is ID 1,2,3
then do this code: wp_list_pages(‘sort_column=menu_order include=1,2,3&title_li=’ );but if the page ID is 4,5,6
then do this code: wp_list_pages(‘sort_column=menu_order include=4,5,6title_li=’ );Something like that. Thanks!
Forum: Fixing WordPress
In reply to: Sidebar: Multiple Categories but only show 1Update*
I’ve decided to use wp_list_pages instead since I’m listing pages within my site.However, I still would like to create an if statement or something that tells my sidebar to only list pages when on on specific pages, but list other pages when on those specific pages. All of this in the sidebar.php file.
Can anyone help? Please!
Forum: Fixing WordPress
In reply to: Sidebar: Multiple Categories but only show 1Just to be clearer, I have have a few pages that need to show category 3 from my links, and then I have a few more pages that need to show category 2, and others that need to show category 4; and so on.
Forum: Fixing WordPress
In reply to: Posts Body Not Publishing in Chronological OrderBump Bump
Forum: Fixing WordPress
In reply to: Posts Body Not Publishing in Chronological OrderThank you. Nothing jumps out at me, what about you?
<?php /** * @package WordPress * @subpackage cvrc */ get_header(); ?> <div id="indexContent"> <div id="right_quick_view"> <div class="rightBox"> <h2 class="noMarginTop">Charleston Veterinary Referral Center</h2> <p class="mainAddress">3484 Shelby Ray Court<br/>Charleston, SC 29414<br/>843.614.VETS (8387)</p> </div> <div class="rightBox"> <h2 class="noMarginTop">Our Location</h2> <p>• <a href="?page_id=27">Get directions to our medical center here ></a></p> <a href="?page_id=5"><img src="<?php echo IMG; ?>er_case.jpg" alt="Emergency Care Now" width="270" /></a> <h2>How Can We Improve?</h2> <p>• <a href="?page_id=89">Take our CVRC Survey online ></a></p> <img src="<?php echo IMG;?>mouse.png" alt="Click the link to take an electronic survey" style="position:absolute; right:0; bottom:0px;"/> </div> <div class="rightBox"> <h2>Upcoming Events</h2> <?php query_posts('cat=6&showposts=5&orderby=date&order=DESC'); global $more; $more = 0; if (have_posts()) : while (have_posts()) : the_post(); $date = get_post_meta($post->ID, 'date', true); if($date < date('m-d-Y')) continue; ?> <p>• <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?><small> (<?php echo $date; ?>)</small></a></p> <?php endwhile; endif; ?> </div> <div class="rightBox last"> <h2>The CVRC Spotlight</h2> <img src="<?php echo IMG;?>right_quick_image.jpg" alt="" /> </div> </div><!--right_quick_view--> <div id="left_index_view"> <div class="alignleft" style="width:366px;"> <div id="home_rotation">Loading images...</div> <style type="text/css"> #home_rotation { width: 366px; height: 488px; } </style> <noscript> <div id="home_rotation_nojs"> <img id="cimy_img_id" src="http://<?php echo get_bloginfo('url');?>/wp-content/Cimy_Header_Images/bandaged_pom_pom.jpg" alt="" /> </div> </noscript> </div> <div id="indexCopy"> <h1>Welcome</h1> <p class="first">Welcome to the Charleston Veterinary Referral Center. We are the most advanced and comprehensive emergency and referral practice in the greater Charleston area. We see appointments by referral from your general veterinarian and are open and fully staffed for emergencies 24 hours a day, 365 days a year. Doctors and nurses are always on site and your pets are never left alone. While your pets are in our care, we will always treat them as an important member of your family. Our goal is to provide you a hospital that offers an exceptional level of patient care as well as exceptional client service. Please take some time to explore our site, meet our staff of specialists, highly trained emergency clinicians, as well as our outstanding veterinary nursing staff. We are excited for you to experience our brand new, state of the art facility, and understand what services we can offer you and your pets. </p> <p class="referringVets">Referring Vets Enter <span class="goButton"><a href="?page_id=15">GO ></a></span></p> </div> <div id="news_announcements"> <h2 class="noMarginTop">News & Announcements at CVRC</h2> <?php // Now we Query the Blog Category query_posts('cat=7&orderby=title&order=DESC'); global $more; $more = 0; if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="newPost"> <?php if ( has_post_thumbnail() ) { echo "<div style='float:left; width:125px; height:75px; margin:0 10px 5px 0;'>"; the_post_thumbnail(array(125,75)); echo "</div> <div style='float:left; width:425px;'>"; } else{ echo "<div style='float:left; width:550px;'>"; }?> <h5><?php the_title(); ?></h5> <div style="margin-left:15px;"> <?php the_content("Read More >"); ?> </div> </div> </div> <div class='clearFix'></div> <?php endwhile; endif; ?> </div> </div> </div> <!--indexContent--> <?php get_footer(); ?>Forum: Fixing WordPress
In reply to: Posts Body Not Publishing in Chronological OrderBump for another reply/answer
Forum: Fixing WordPress
In reply to: Posts Body Not Publishing in Chronological OrderThanks ninjagowoo,
However, while that works (I actually already tried that before coming here), it removes the body copy of any new post. I tried it once again, then created a new post, but when I hit update the text in the body window disappears…both on the frontend and in the admin post panel.
Weird huh? What am I missing?
Forum: Fixing WordPress
In reply to: Posts Not Showing UpHave you edited your functions.php file recently?
I have the same problem, and the only recent change I’ve made is to the functions.php file. So I’ll have to figure out whats causing it.
Probably a good place to start though.