nmcnulty
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: author nameThanks! That worked. I need to put a ; after ‘Posted on: ‘ but other than that it worked. So the final is:
<?php if(get_option(‘uwc_dates_index’) == ‘on’) {echo ‘<div class=”date”>’; echo ‘Posted on:’ ; the_time(get_option(‘date_format’)); echo ‘</div>’; } ?>Forum: Fixing WordPress
In reply to: author nameThanks for your help! Here is the code:
<div class=”ind-post”>
<h1>” title=”<?php printf(__(“Permanent Link to %s”, “magazine-basic”), the_title_attribute(‘echo=0’)); ?>”><?php the_title(); ?></h1>
<div class=”meta”>
<?php if(get_option(‘uwc_dates_index’) == ‘on’) {echo ‘<div class=”date”>’; the_time(get_option(‘date_format’)); echo ‘</div>’; } ?>
<?php if(get_option(‘uwc_authors_index’) == ‘off’) { _e(“By”, “magazine-basic”); echo ‘ ‘; the_author_posts_link(); } ?>
</div>Forum: Fixing WordPress
In reply to: author nameThat works, but the “Posted on” appears two lines about the date. I would like it in the same line, directly in front of the date.
Forum: Fixing WordPress
In reply to: author nameThank you. Archive.php works.
This leads me to the next question. Currently on all pages it is:
title of post
date
postNext to the date, I would like to have “Posted on:” so that it reads
Posted on: May 21Is there a way to change this in the coding?
Forum: Fixing WordPress
In reply to: 404 – File or directory not found ErrorIn the default theme, the top page does not seperate into individual pages. I deactivated and reactivated all plugins, but this did not work. I think it is something with the coding (line 20-21). Does anyone know how to change the coding to fix this problem?
<?php get_header(); ?>
<?php
$options = get_option(“widget_sideFeature”);
$posts = get_option(‘uwc_number_posts’);
$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
if (is_active_widget(‘widget_myFeature’)) {
$args = array(
‘cat’=>’-‘.$options[‘category’],
‘showposts’=>$posts,
‘paged’=>$paged,
);
} else {
$args = array(
‘showposts’=>$posts,
‘paged’=>$paged,
);
}
if(!get_option(‘uwc_number_posts’)) {
$args = array(
‘showposts’=>6,
‘paged’=>$paged,
);
}
$x = 1;
query_posts($args);
?>
<?php
if(!stristr($_SERVER[‘REQUEST_URI’],’/page/’)) {
if(get_option(‘uwc_latest_story’) == “on”) { echo ‘<h5 class=”latest”>’.__(‘ ‘, “magazine-basic”).’
</h5>’; }
if(get_option(‘uwc_post_layout’) == 1) { include (TEMPLATEPATH.’/layout/option1.php’); }
elseif(get_option(‘uwc_post_layout’) == 2) { include (TEMPLATEPATH.’/layout/option1.php’); }
elseif(get_option(‘uwc_post_layout’) == 4) { include (TEMPLATEPATH.’/layout/option1.php’); }
else { include (TEMPLATEPATH.’/layout/option1.php’); }
} else {
include (TEMPLATEPATH.’/layout/option1.php’);
}
?>
<?php
if(function_exists(‘pagination’)) { pagination(); }
?>
<?php get_footer(); ?>Forum: Fixing WordPress
In reply to: 404 – File or directory not found ErrorThey are already set to default
Forum: Fixing WordPress
In reply to: Text in Post DisappearingTo answer the first question, when I go to edit a post, the text is not there.
Forum: Fixing WordPress
In reply to: Text in Post DisappearingI am not familiar with coding. Below is the code under single post. I did control F and found “content” but not “excerpt
<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<h1><?php the_title(); ?></h1>
<div class=”meta”>
<?php if(get_option(‘uwc_dates_posts’) == ‘on’) { echo ‘<div class=”date”>’; the_time(get_option(‘date_format’)); echo ‘</div>’; } ?>
<?php if(get_option(‘uwc_authors_posts’) == ‘on’) { _e(“By”, “magazine-basic”); echo ‘ ‘; the_author_posts_link(); } ?>
</div>
<div class=”entry”>
<?php $subtitle = get_post_meta($post->ID, ‘subtitle’, true);
if($subtitle) echo ‘<p class=”sub”>’.$subtitle.'</p>’;
?>
<?php the_content(); ?>
<?php the_tags(__(‘<p class=”tags”><small>Tags: ‘, “magazine-basic”), ‘, ‘, ‘</small></p>’); ?>
</div>
<?php wp_link_pages(array(‘before’ => ‘<p>‘.__(‘Pages’, “magazine-basic”).’ ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>
</div><?php comments_template(); ?>
<?php endwhile; else: ?>
<p><?php _e(“Sorry, no posts matched your criteria.”, “magazine-basic”); ?></p>
<?php endif; ?>
<?php get_footer(); ?>