jkovis
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: trying to add author to postCan you confirm that you placed the_author() inside your loop?
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <!-- some other xhtml template code could go here--> <p>This post was written by <?php the_author(); ?></p> <!-- some other xhtml template code could go here--> <?php endwhile; endif; ?>Can you post the code that you’re trying to change?
Forum: Fixing WordPress
In reply to: Web page needs to select the most recent postBased on the xhtml markup that looks like the correct template.
In index.php change:
<?php if (have_posts()) : ?> <?php $offset = ($paged) ? (int) (get_option('posts_per_page') * ($paged - 1)) : 0; ?> <?php query_posts("orderby=menu_order&order=ASC&offset={$offset}"); ?> <?php while (have_posts()) : the_post(); ?>to
<?php if (have_posts()) : ?> <?php /* $offset = ($paged) ? (int) (get_option('posts_per_page') * ($paged - 1)) : 0;*/ ?> <?php /*query_posts("orderby=menu_order&order=ASC&offset={$offset}");*/ ?> <?php while (have_posts()) : the_post(); ?>and see if that fixes the issue.
Forum: Fixing WordPress
In reply to: Web page needs to select the most recent postbut none of the posts were sticky, and every post already has the same category (news)
— strange…your “News” RSS feed (http://delcospca.org/cms/?cat=3&feed=rss2) doesn’t seem to be matching your “News” category page (http://delcospca.org/cms/?cat=3) can you post the contents of the page template used for your /cms page?— also, are there any tags or other categories selected for this post –> http://delcospca.org/cms/?p=30 ?
Forum: Fixing WordPress
In reply to: Web page needs to select the most recent postThe content of the page is not going to be found in an index file on your server…rather WordPress is dynamically pulling the information from those two posts from its database.
(Good point kymac about them being sticky posts, but it looks like they’re pulling in the two most recent posts from the news category.)
In index.php (or home.php) look for something that says query_posts(cat=3) or new WP_Query(cat=3)…the cat=3 tells WP to only include posts from your “News” category and from that point until the
<?php endwhile; ?>is what controls how those posts are formated (what is displayed and the html around them). To show the most recent posts from the entire site just remove the cat=3.To edit the actual posts, go to /wp-admin/edit.php and click on the post titles that you want to edit.
Forum: Fixing WordPress
In reply to: Font sizeyou can try adding a font-size property to the body (or whatever element you want to change) selector:
body { font-size: 12px; }Forum: Fixing WordPress
In reply to: PHP warning gzuncompress()not sure what exactly would be causing the error…
http://php.net/manual/en/function.gzuncompress.php
“The function will return an error if the uncompressed data is more than 32768 times the length of the compressed input data or more than the optional parameter length.”
Forum: Fixing WordPress
In reply to: New Pages “not found on this server”glad it worked
AFAIK an .htaccess file is an apache server configuration file that lets WP rewrite query strings (like blogurl.tld/?p=252) as pretty URLs
Forum: Fixing WordPress
In reply to: New Pages “not found on this server”Without an .htaccess file a URL like http://www.syfoto.com/notes/archives won’t work.
Take a look at /wp-admin/options-permalink.php to see what permalink structure your site is using.
More information is here http://codex.wordpress.org/Using_Permalinks
Forum: Fixing WordPress
In reply to: New Pages “not found on this server”Are all of your WordPress folders and files contained in the /notes folder?
- /public_html - index.html (file that holds your flash site) - /notes - /wp-admin - /wp-content - /wp-includes - .htaccess - index.php - wp-config.php - wp-(etc).phpForum: Fixing WordPress
In reply to: How can I prevent site from being indexed until I get site ready?Your post is a unclear…do you want your posts to be crawled by search engines or not?
Have you tried /wp-admin/options-privacy.php?
Forum: Fixing WordPress
In reply to: How to Set-up Blog deeper in Website Hierarchy?good to hear…can you mark this thread as resolved?
Forum: Fixing WordPress
In reply to: How to Set-up Blog deeper in Website Hierarchy?Have you tried setting your front page to display a static page (/wp-admin/options-reading.php)?
Forum: Fixing WordPress
In reply to: Cannot remove widgetsok, can you mark this thread as resolved?
Forum: Themes and Templates
In reply to: Problem with sidebar and main contentGreat; can you mark this tread as resolved?
Forum: Fixing WordPress
In reply to: A way to have latest post display full post and others an excerpt?Try this:
<?php get_header(); ?> <div id="content"> <?php if(!function_exists('dynamic_sidebar') || !dynamic_sidebar('Index Top Right')):?><?php endif;?> <div class="index-block"> <?php if(!function_exists('dynamic_sidebar') || !dynamic_sidebar('Video Spot')):?><?php endif;?> </div> <h1 class="section_title">Most Recent Articles</h1> <?php $counter = 1; ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div id="post-<?php the_ID(); ?>" class="post"> <h2 class="title">" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></h2> <p class="meta author"><?php the_time('F jS, Y') ?></span></p> <div class="entry"> <?php if($counter == 1) : ?> <?php the_content('...Read more »'); ?> <?php else : ?> <?php the_excerpt(); ?> <?php endif; ?> </div> <p style="text-align:right;margin:0;"> <?php comments_popup_link('No Comments', '1 Comment', '% Comments', 'comments'); ?> </p> </div> <?php $counter++; ?> <?php endwhile; ?> <?php else : ?> <div class="post"> <h1 class="title">Not Found</h1> <div class="entry"> <p>Sorry, but you are looking for something that isn't here.</p> </div> </div> <?php endif; ?> </div><!-- end content --> <?php get_sidebar(); ?> <?php get_footer(); ?>