chrischickenwire
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Problem with loading scriptAny ideas on this? I’m stuck.
Forum: Fixing WordPress
In reply to: Alignment issuesBrilliant. Thanks.
Forum: Fixing WordPress
In reply to: Changing the arrows after Older/Newer PostsBrilliant thanks!
Forum: Fixing WordPress
In reply to: Next / Previous Post by CategoryBrilliant. Thanks!
Forum: Fixing WordPress
In reply to: "Older Posts" not showing older postsIn which file?
Sorry for all the questions. I’m new to this! ??
I can’t see it in the file index.php which is sending to my Blog posts page.
Here is the code on that file:
[Code moderated as per the Forum Rules. Please use the pastebin]
Forum: Fixing WordPress
In reply to: Any idea why the date isn't displaying here…That’s not strictly what I mean Roy. What I want to display is exactly what I have displayed on the home page posts (https://www.rjt-online.com/wp -“Posted on date, time”). I want to display it exactly the same on the blog posts in index.php, but there is no reference in that file so I believe I have to alter the functions file somehow.
Forum: Fixing WordPress
In reply to: Any idea why the date isn't displaying here…One more thing if you’ve got a moment Roy. I’m trying to change the date format in the main index.php file too so that it displays that way across my main blog page, but that file doesn’t seem to reference a date format.
Any idea how I could change it?
The code for that page is:
<?php include ('blogheader.php'); ?> <div id="container"> <span id="archives"> <h3 class="widget-title-left">LATEST BLOG //</h3> </span> <div id="content" role="main"> <?php /* Run the loop to output the posts. * If you want to overload this in a child theme then include a file * called loop-index.php and that will be used instead. */ //The Query query_posts('posts_per_page=5&cat=22'); get_template_part( 'loop', 'index' ); ?> </div><!-- #content --> </div><!-- #container --> <?php include ('sidebar_blog.php'); ?> <?php include ('blogfooter.php'); ?>
Forum: Fixing WordPress
In reply to: Archive with posts from one categoryThat doesn’t seem to be working.
It’s throwing an error:
Parse error: syntax error, unexpected $end in /home/rjtonlin/public_html/wp/wp-content/themes/twentyten/archive.php on line 59
Any idea?
I pasted the code into the Loop in Archive.php
Forum: Fixing WordPress
In reply to: Any idea why the date isn't displaying here…No that’s great thanks Roy!
Forum: Fixing WordPress
In reply to: Any idea why the date isn't displaying here…Thanks for the reply ??
What do you mean by that?
Where should I be posting that code?
Forum: Fixing WordPress
In reply to: Category specific ArchiveSo I’ve posted that in my functions.php page, and “Excluded” all the categories that I don’t want, but that doesn’t seem to have done anything. Any more help would be great?
Forum: Fixing WordPress
In reply to: Category specific ArchiveI’ve found the below code on another thread which apparently needs to be put in the functions.php file. This code will apparently exclude certain categorys from the archive, and then I can pull the archive in the same way as normal.
Problem is, I’ve tried just pasting it into the functions.php file but it corrupts the site and the site no longer opens. Do I have to place in specific tags, or in a certain place?
add_filter( 'getarchives_where', 'customarchives_where' ); add_filter( 'getarchives_join', 'customarchives_join' ); function customarchives_join( $x ) { global $wpdb; return $x . " INNER JOIN $wpdb->term_relationships ON ($wpdb->posts.ID = $wpdb->term_relationships.object_id) INNER JOIN $wpdb->term_taxonomy ON ($wpdb->term_relationships.term_taxonomy_id = $wpdb->term_taxonomy.term_taxonomy_id)"; } function customarchives_where( $x ) { global $wpdb; $exclude = '1'; // category id to exclude return $x . " AND $wpdb->term_taxonomy.taxonomy = 'category' AND $wpdb->term_taxonomy.term_id NOT IN ($exclude)"; }
Forum: Fixing WordPress
In reply to: Displaying date of post on static page issue?Any more help with this would be great?
I’d simply like to display the “posted date” underneath the posts title
Forum: Fixing WordPress
In reply to: Displaying date of post on static page issue?I assume you meant to post that in page_home.php which I am using as the Home page template?
Its throwing the following error when I do that:
Parse error: syntax error, unexpected T_ENDWHILE in /home/rjtonlin/public_html/wp/wp-content/themes/twentyten/page_home.php on line 37
I also tried pasting it in singles.php but that didn’t work either.
Forum: Fixing WordPress
In reply to: Sidebar moving to bottom of page when resizing it?You’re right. I knew it would be obvious! ??