Sam Scholfield
Forum Replies Created
-
Hi Glen,
You can create a robots.txt file, this will block search engines from looking at specific pages on your websites.
see the codex for more information.
Forum: Fixing WordPress
In reply to: Removing the RSS link in menu barIt looks as if that’s a link within your theme files.
Have a look through your files for the words RSS and delete that line of code. It will probably be in a file called header.phpForum: Themes and Templates
In reply to: Adding Background ImageAs the image is part of your theme, take it out of your uploads directory and put it into an images folder in your theme. the css would then be:
#wrapper { background-image: url('images/background_gradient.jpg'); background-repeat: repeat-x; background: #ffffff; margin-top: 20px; padding: 0 20px; }Forum: Fixing WordPress
In reply to: Aligning "read more" linkCould you not float: right then reduce the padding to padding: 0px 6px; in .post-content a.more-link ?
That way it will be right aligned and the background will be smaller?
Another idea could be to add .post-content a.more-link { position: absolute; right: 0; }
That will also align it with your tags.
Forum: Fixing WordPress
In reply to: query_post('tag= I can only find unresolved topicsIt’s no problem. Glad to hear its fixed!
Forum: Fixing WordPress
In reply to: query_post('tag= I can only find unresolved topicsI just recreated what you are trying to do, however I can’t show you as its on a local version.
This is the code I used:
function sams_tagloop($tag = 'TAG'){ thematic_postheader(); the_content(); query_posts("tag=" . $tag); if (have_posts()) : while (have_posts()) : the_post(); ?> <div id="post-<?php the_ID() ?>" class="<?php thematic_post_class() ?>"> <?php thematic_postheader(); if ($counter == 1 && has_post_thumbnail()){ the_post_thumbnail('homepage-thumbnail'); } ?> <div class="entry-content"> <?php the_excerpt();?> <a href="<?php the_permalink(); ?>" class="more"><?php echo more_text() ?></a> <?php $counter++; ?> </div> </div><!-- post --> <?php endwhile; else:?> <h2>Arg!</h2> <p>There are no posts to show!</p> <?php endif; wp_reset_query(); }You will notice I use the Thematic theme, however if you remove the thematic functions then it will still work. (This code is in the themes function.php file.
That is called from a template file with the function
sams_tagloop('TAG');Alternatively, you can use a plugin, e.g. http://wordpress.org/extend/plugins/posts-by-tag/
That uses a short code
[posts-by-tag tags = "tag1, tag2"]Forum: Everything else WordPress
In reply to: Custom Post Types and PermalinksThanks for the info Ipstenu, I overlooked the part about it being a CPT.
Having looked a little into CPT, I came across:
http://codex.wordpress.org/Post_TypesThere is a section in there about URL’s, it might help.
Forum: Themes and Templates
In reply to: How to remove "leave a reply box" from the website?Try changing
<?php comments_template( '', true ); ?>
to
<?php comments_template( '', false ); ?>Forum: Themes and Templates
In reply to: editing help pleaseI’m not too sure what you mean.
If you add into your code the <!– –> comment tags like I demonstrated, does this remove the “Categories” title on your page?
If it does, go into your WordPress admin, then the widgets page, click and drag anything that is in the right had column out of that column.
If there is nothing there, then I’m not sure, have a look at any other files that might be used and see if you can find the word “categories”
dynamic_sidebar() is used when you have widgets selected in the admin menu, so double check there
Forum: Themes and Templates
In reply to: How to remove "leave a reply box" from the website?ok, then have a look in your editor (appearance > editor) at your pages template (normally pages.php) see if there is any code allowing for comments in there. This however will affect every page that has been created.
Forum: Themes and Templates
In reply to: editing help pleaseYou can try commenting out the sidebar bits, if this gets rid of them then you will have a widget active within your widget menu.
<div id=”right”>
<!–
<?php if ( is_active_sidebar( ‘right_sidebar’) ) : ?>
<?php dynamic_sidebar(‘right_sidebar’) ?>
–>
<?php else : ?>Forum: Themes and Templates
In reply to: editing help pleaseNot knowing your technical skills here, so this might be over your head, but in appearance > editor, there might be a file called sidebar.php, in this file it might be setting a default sidebar widget. If you remove that then it will go.
Otherwise, have a look at your pages template (normally pages.php) and see if there is something in there.
Forum: Fixing WordPress
In reply to: query_post('tag= I can only find unresolved topicsok here is a different solution:
$tag = 1; the_content(); query_posts("tag=" . $tag); if (have_posts()) : while (have_posts()) : the_post(); ?> <div id="post-<?php the_ID() ?>"> <?php the_title(); ?> <div class="entry-content"> <?php the_excerpt(); ?> <a href="<?php the_permalink(); ?>" class="more">more...</a> </div> </div><!-- post --> <?php endwhile; else: ?> <h2>Arg!</h2> <p>There are no posts to show!</p> <?php endif; wp_reset_query();Please note that this code is not tested.
you can also put that into a function:
function a_tagloop($tag){}Give that a try.
Forum: Fixing WordPress
In reply to: new page does not show up on actual webtieok, well have a look in the header.php file which you can find in appearance > editor, there will hopefully be a list in there of the pages, you will need to add your new page to that list.
If its not there, I’m out of solutions, if it is and your not familiar with HTML then paste anything inbetween
<ul>and</ul>
and I can tell you what to edit.Forum: Fixing WordPress
In reply to: new page does not show up on actual webtieThat sounds like your now in the ‘Pages’ menu, you need to be in ‘appearance > menu’ section, the normal link is /wp-admin/nav-menus.php.
When your here, if you can see the text:
“To create a custom menu, give it a name above and click Create Menu. Then choose items like pages, categories or custom links from the left column to add to this menu.”
Then the menu doesn’t exist here and you will need to refer to my second post about it being in header.php