richarduk
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Show the whole post instead of ‘Continue Reading ยป’Try a simple test. Put some text underneath the video and see if the text shows on the home page and on the category page.
If it does, then it’s something to do with the code used to insert the YouTube video.
Forum: Plugins
In reply to: Move Meta to Top of Post Screen?post.php contains loads of functions. Are you sure you mean post.php?
Forum: Themes and Templates
In reply to: Populating new pages with Category postsSolved?
Forum: Fixing WordPress
In reply to: Categories- How to list all the titles instead of all the posts?I know
๐
I’m working on a really simple theme that anyone can understand, because a lot of themes and style sheets are beautifully crafted but virtually impossible to reverse engineer.
Good question.
The answer is that your-csss-style-name is a class that’s added to your link.
<p class="postinfo"> <a href="http://www.mysite.com/?p=24#respond" class="your-csss-style-name" title="Comment on pears post">No Comments - be the first!</a> </p>So you could change your-css-style-name to something like comment-link-style.
In your stylesheet style.css you have styles for links probablye something along the lines of:
a:hover {font-weight:bold} a:link {font-weight:normal) a:visited {font-weight:bold}You now want to create a specific class of links (you don’t have to, you can have your comment links looking the same as all the other links, it’s just an option and if you do nothing your comment links will look just like the other links)
But IF you want your comment links to look different, do this:
a.comment-link-style:link {font-style:italic} a.comment-link-style:visited (font-style:normal} a.comment-link-style:hover {font-style:italic}๐
Forum: Themes and Templates
In reply to: Populating new pages with Category postsI/m not sure what you want – can you explain it any better?
This is from http://codex.wordpress.org/The_Loop
<!-- Start the Loop. --> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <!-- The following tests if the current post is in category 3. --> <!-- If it is, the div box is given the CSS class "post-cat-three". --> <!-- Otherwise, the div box will be given the CSS class "post". --> <?php if ( in_category('3') ) { ?> <div class="post-cat-three"> <?php } else { ?> <div class="post"> <?php } ?>On the other hand, you might be wanting to have all posts from category A in a div to the left of the page, all posts from category B in a div to the right of the page? If so, the only way would be to have two separate loops – loop one in the left div selects all the posts from category A, loop two in the right div selects all the posts from category B
Forum: Fixing WordPress
In reply to: Categories- How to list all the titles instead of all the posts?In category.php replace
<?php the_content(); ?>
with
<?php the_excerpt(); ?>Forum: Fixing WordPress
In reply to: Having problems with customizing permalink structurehttp://wordpress.org/support/topic/108996?replies=1
Is this relevant?If not, are you really using question marks before and after the structure tags or is that just a glitch in pasting the code? Or pressing shift when typing in the slashes?
Using %category%
%category% does not work correctly with some implementations of mod_rewrite in Apache versions prior to 2. If you are using Apache 1 and experience problems with using %category%, either do not use %category% in your permalink structure, or refer to Schlueterica’s plugin (http://isaacschlueter.com/plugins/i-made/lucky-13-rewrite/).
Forum: Themes and Templates
In reply to: Please help-quick code question about sidebar!It’s a bit difficult without seeing the whole code as each theme is different.
http://pastebin.com/
http://pastebin.co.uk/are two places you can paste a full page of code
From my notes:
Tip: if there don’t seem to be enough author links check that you haven’t got (‘hide_empty=1’) because (‘hide_empty=1’) means that authors with zero posts won’t be displayed.
Also, if you are the administrator and there are no other authors, by default your name is not shown. There will be no<li></li>elements within the<ul></ul>
elements, which is not good markup. Also check that you haven’t got (‘exclude_admin=1’) because (‘exclude_admin=1’) hides your link.Here’s the little varmint that creates all the #respond and #comment stuff – I’ve copied and pasted from my notes:
<?php comments_popup_link('Your wording for no comments', 'Your wording for one comment', 'Your wording for there were % comments', 'Your-CSS-style-name', 'Your wording for no comments allowed'); ?>
%gives the number of comments, Your-CSS-style-name is the CSS style that you want to use to style the comments link.Links to posts that have no comments will have #respond added to them. This links to the anchor
<h3 id="respond">found within comments.php and takes the user diretly to the comment input form at the bottom of the post.Links to posts with comments will have #comments added to them. This links to the anchor
<h3 id="comments">in comments.php – in other words, it takes the user directly to the first comment, so that they can read it.a name="respond">blah</a>Sorry, I replied aand then the support forum seemed to crash. Probably unrelated.
When you link to your post you’ll have either #respond or #comments added on by WordPress, depending on whether or not there are comments. Mouseover the link and look at the status bar.
I would delete one of your id=”comments” and replace it with id=”respond” and see what happens.
You shouldn’t have two identical ids on the same page – that would prevent your page validating.
Finally, your anchor doesn’t need to be id=”respond”, it could be a name=”respond” (sorry, code not rendering when try to edit it)
Forum: Fixing WordPress
In reply to: P on pagesFind wherever your sidebar is in your theme – maybe sidebar.php? If not, just search for `<div id=”left_sidebar”>
from the look of it you have the following:
<?php wp_list_pages('title_li=<h2>P');?>remove the <h2>P and replace with whatever you want. Don’t forget to add in the closing element </h2>