craigpriestley
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Removing ‘Home’ Tab from a themeAlso, the Home page isn’t in my pages section. I think it’s possibly hardcoded.
Forum: Fixing WordPress
In reply to: WordPress Loop – Expanded on pageOkay UPDATE:
I edited the index.php and got everything looking how i wanted.
BUT!
it totally messed with the blog section. Whenever i clicked on a category or tag it just took you to the home page.
So i’m back to needing to implement a static front page and have the blog on another page – i tried but then /blogs said there was nothing to display!
Forum: Fixing WordPress
In reply to: Recent Posts on Static Home PageI don’t know why but.
Editing the index.php was editing the page i POSTED to. Not the page i set as home.
So i removed the static page, just had my post page as my home page and then edited the index.php file.
And Viola! It works.
Forum: Fixing WordPress
In reply to: Recent Posts on Static Home PageI have tried editing the index.php but nothing changes, so i think it’s in the header:
<?php
define (‘TEMPLATE_DOMAIN’,’freshy2′);
load_theme_textdomain(TEMPLATE_DOMAIN);
global $freshy_options;
$freshy_options = get_option(‘freshy_options’);
?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
“https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=”https://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”>
<head profile=”https://gmpg.org/xfn/11″>
<meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
<title><?php bloginfo(‘name’); ?> <?php wp_title(); ?></title>
<meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” />
<link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” title=”Freshy”/>
<!–[if lte IE 6]>
<link rel=”stylesheet” href=”<?php print get_bloginfo(‘stylesheet_directory’).’/fix-ie.php’; ?>” type=”text/css” media=”screen”/>
<![endif]–>
<link rel=”alternate” type=”application/rss+xml” title=”RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
<link rel=”alternate” type=”text/xml” title=”RSS .92″ href=”<?php bloginfo(‘rss_url’); ?>” />
<link rel=”alternate” type=”application/atom+xml” title=”Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />
<link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
<?php wp_get_archives(‘type=monthly&format=link’); ?>
<?php wp_head(); ?>
<meta name=”verify-v1″ content=”wkZ1x+iWBMwBm2+YaEJIzI8unHEVqOHsioosrFRYvB4=” />
<meta name=”msvalidate.01″ content=”44F3CD83E084F8D674E79DD3814787C7″ />
</head>
<body>
<div id=”body”><div id=”header”>
<div class=”container”>
<div id=”title”>
<h1>
“>
<span><?php bloginfo(‘name’); ?></span>
</h1>
<div class=”description”>
<small><?php bloginfo(‘description’); ?></small>
</div>
<div id=”quicklinks”>-
<?php if ($freshy_options[‘custom_quicklinks’])
-
“>
<?php _e($custom_quicklink[‘label’],TEMPLATE_DOMAIN); ?>
- ” class=”rss”>rss
{
foreach ($freshy_options[‘custom_quicklinks’] as $custom_quicklink)
{
?><?php
}
}
?>
<?php if($freshy_options[‘header_rss’]) : ?><?php endif; ?>
<?php if($freshy_options[‘header_search’]) : include (TEMPLATEPATH . ‘/searchform.php’); endif; ?>
</div>
</div>
<div id=”header_image”><div id=”menu”>
<div class=”menu_container”>-
“>
<?php _e($custom_menu[‘label’],TEMPLATE_DOMAIN); ?>
<?php if (‘page’ != get_option(‘show_on_front’)) : // no page has been chosen as frontpage ?>
<li class=”<?php if (is_home()) echo ‘current_page_item’; ?>”>
“>
<?php _e($freshy_options[‘first_menu_label’],TEMPLATE_DOMAIN); ?>
<?php endif; ?>
<?php wp_list_pages(‘sort_column=menu_order&title_li=’); ?>
<?php if ($freshy_options[‘custom_menus’])
{
foreach ($freshy_options[‘custom_menus’] as $custom_menu)
{
?><?php
}
}
?><?php if ($freshy_options[‘last_menu_type’]==’email’ || $freshy_options[‘last_menu_type’]==’link’) : ?>
<li class=”last_menu”>
<?php if ($freshy_options[‘last_menu_type’]==’email’) : ?>
“>
<?php _e($freshy_options[‘last_menu_label’],TEMPLATE_DOMAIN); ?>
<?php elseif ($freshy_options[‘last_menu_type’]==’link’) : ?>
“>
<?php _e($freshy_options[‘last_menu_label’],TEMPLATE_DOMAIN); ?>
<?php endif; ?>
<?php endif; ?>
</div><span class=”menu_end”></span>
</div></div>
</div>
</div><div id=”page” <?php echo freshy_layout_class() ?>>
<div class=”container”>
<div id=”frame”>Forum: Fixing WordPress
In reply to: Recent Posts on Static Home PageThis is my index file if it helps:
<?php get_header(); ?>
<div id=”content”>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<?php if ($freshy_options[‘author’]) : ?><small class=”author”><?php the_author(); ?></small><?php endif; ?>
<?php if ($freshy_options[‘date’]) : ?>
<small class=”date”><?php if ($freshy_options[‘author’]) : ?>|<?php endif; ?> <?php the_time(get_option(‘date_format’)) ?></small>
<?php endif; ?>
<?php if ($freshy_options[‘time’]) : ?>
<small class=”date”><?php if ($freshy_options[‘date’]) : ?>|<?php endif; ?> <?php the_time() ?></small>
<?php endif; ?><div class=”entry”>
<?php the_content(‘<span class=”readmore”>’.__(‘Read the rest of this entry »’,TEMPLATE_DOMAIN).'</span>’); ?>
</div><div class=”meta”>
<dl><dt><?php _e(‘Comments’,TEMPLATE_DOMAIN); ?></dt><dd><?php comments_popup_link(__(‘No Comments »’,TEMPLATE_DOMAIN), __(‘1 Comment »’,TEMPLATE_DOMAIN), __(‘% Comments »’,TEMPLATE_DOMAIN)); ?></dd>
<dt><?php _e(‘Categories’,TEMPLATE_DOMAIN); ?></dt><dd><?php the_category(‘, ‘) ?></dd>
<?php if(function_exists(‘the_tags’)) : ?>
<?php the_tags(‘<dt>Tags</dt><dd>’, ‘, ‘, ‘</dd>’); ?>
<?php endif; ?>
<?php if(function_exists(‘the_bunny_tags’)) : ?>
<?php the_bunny_tags(‘<dt>Tags</dt><dd>’, ‘</dd>’, ‘, ‘); ?>
<?php endif; ?>
<?php if(function_exists(‘the_bookmark_links’)) : ?>
<dt><?php _e(‘Spread the word’,TEMPLATE_DOMAIN); ?></dt><dd><?php the_bookmark_links(); ?></dd>
<?php endif; ?>
<?php if (‘open’ == $post-> comment_status) : ?>
<dt><img alt=”<?php _e(‘Comments rss’,TEMPLATE_DOMAIN); ?>” src=”<?php echo get_bloginfo(‘stylesheet_directory’) ?>/images/icons/feed-icon-16×16.gif” /> <?php comments_rss_link(__(‘Comments rss’,TEMPLATE_DOMAIN)); ?></dt>
<?php endif; ?>
<?php if (‘open’ == $post->ping_status) : ?>
<dt><img alt=”<?php _e(‘Trackback’,TEMPLATE_DOMAIN); ?>” src=”<?php echo get_bloginfo(‘stylesheet_directory’) ?>/images/icons/trackback-icon-16×16.gif” /> ” rel=”trackback” title=”<?php _e(‘Trackback’,TEMPLATE_DOMAIN); ?>”><?php _e(‘Trackback’,TEMPLATE_DOMAIN); ?></dt>
<?php endif; ?>
<?php if ($user_ID) : ?>
<dt><img alt=”<?php _e(‘Edit’,TEMPLATE_DOMAIN); ?>” src=”<?php echo get_bloginfo(‘stylesheet_directory’) ?>/images/icons/edit-icon-16×16.gif” /> <?php edit_post_link(__(‘Edit’,TEMPLATE_DOMAIN),”,”); ?></dt>
<?php endif; ?>
</dl>
</div></div>
<?php endwhile; ?>
<p class=”navigation”>
<span class=”alignleft”><?php next_posts_link(__(‘« Previous Entries’,TEMPLATE_DOMAIN)) ?></span>
<span class=”alignright”><?php previous_posts_link(__(‘Next Entries »’,TEMPLATE_DOMAIN)) ?></span>
</p><?php else : // nothing found ?>
<div class=”post” id=”post-none”>
<h2><?php _e(‘Not found’,TEMPLATE_DOMAIN); ?></h2>
<p><?php _e(“Sorry, but you are looking for something that is not here”,TEMPLATE_DOMAIN); ?></p>
</div>
<?php endif; ?></div>
<?php // sidebars ?>
<?php if ($freshy_options[‘sidebar_right’] == true) get_sidebar(); ?>
<?php if ($freshy_options[‘sidebar_left’] == true) include (TEMPLATEPATH . ‘/sidebar_left.php’); ?></div>
<?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: Creating a Static Homepage when Blog setup on front pagefantastic. Thanks Michael and Nouveller, I will try those tonight.
Forum: Fixing WordPress
In reply to: Creating a Static Homepage when Blog setup on front pageOkay will use that topic. Thanks for your quick reply.
If i change the blogs to post to blog.php will it ruin my permalinks?
-
“>