thingymajig
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Display comments but not comments form on homepageI’ve now solved this as follows;
Get comments and comments form to display afetr each post on home page as above.
Then edit the comments.php file in your theme as below;
THE CODE TO DISPLAY COMMENTS HERE
‘<?php if (is_single()) : ?>’
THE CODE TO DISPLAY THE COMMENT FORM HERE
‘<?php else : // not a single page ?>
<?php endif; ?><?php endif; // if you delete this the sky will fall on your head ?>’
Forum: Fixing WordPress
In reply to: Permalins (htaccess?) problem.no double % was a typo – I was desperate for sleep at the time of writing!
Permalink was /%postname%/
Like I said above though, I have managerd to get it to change to example.com/year/month/day/post-name
(sorry, the syntax probably isn’t quite right above but I can’t upload a blank .htaccess file from work so I can’t get into the admin to view the correct syntax)
Forum: Fixing WordPress
In reply to: Display comments but not comments form on homepagesorry to bump but … any ideas anyone?
Forum: Fixing WordPress
In reply to: Duplicate Content Help NeededCould you keep displaying 1 post per page, keep your homepage post but just set it as a sticky?
Forum: Fixing WordPress
In reply to: Adding full content from all posts in category to footeroops! the site is https://www.langhofc.com
Forum: Fixing WordPress
In reply to: Adding full content from all posts in category to footerWell, here’s mine for what it’s worth…
<div id="footer"> <?php wp_footer(); ?> <?php $posts = query_posts( 'showposts=4&cat=106' ); ?> <?php if( $posts ) : ?> <?php foreach( $posts as $post ) : setup_postdata( $post ); ?> <div class="entry"> <?php the_content('Read the rest of this entry »'); ?> </div> <?php endforeach; ?> <?php endif; ?> <div class="padding"> My own footer content is here </div> </div>
I’m using a edited version of the ‘Sunrise’ theme to test this instead of my usual theme. I will leave the test theme active for half an hour to give you chance to see it working.
Forum: Fixing WordPress
In reply to: Adding full content from all posts in category to footerI know you didn’t want any links in the cat 3 posts in the footer but I’ve got this code to work in my site now.
<?php $posts = query_posts( 'showposts=4&cat=3' ); ?> <?php if( $posts ) : ?> <?php foreach( $posts as $post ) : setup_postdata( $post ); ?> <div class="entry"> ***REPLACE THIS WITH YOUR OWN CLASS FOR ENTRIES*** <?php the_content('Read the rest of this entry »'); ?> </div> <?php endforeach; ?> <?php endif; ?>
Forum: Fixing WordPress
In reply to: Adding full content from all posts in category to footerDoes this work for you?
<?php $posts = query_posts( 'showposts=4&cat=3' ); ?> <?php if( $posts ) : ?> <?php foreach( $posts as $post ) : setup_postdata( $post ); ?> <?php the_content('Read the rest of this entry »'); ?> <?php endforeach; ?> <?php endif; ?>
Forum: Fixing WordPress
In reply to: Limit Contributor’s publishing?How about creating a category called ‘For Review’ (or something) then hiding that category from your main page. Once you have checked the review you can place it in the right category and it will show on your main page.
Forum: Fixing WordPress
In reply to: get_posts() only picking up one categoryDo you want five from one category and then five from the other? If so use two get_posts line, one for each category.
If you want the five latest post placed in either category 5 or 6 try
get_posts(‘numberposts=5&offset=0&cat=5,6’)
Let me know how you get on because I’m trying something similar!