lyklev
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Installation StuckWhat do your web server logs say?
Forum: Themes and Templates
In reply to: Post coloringA couple of
}
‘s are missing.an alternative, less error-prone way is the fortran-style:
<?php if ( in_category('3') ) : ?>
<div class="post-cat-three">
<?php elseif ( in_category('4') ) : ?>
<div class="post-cat-four">
<?php elseif ( in_category('n') ) : ?>
<div class="post-cat-n">
<?php else : ?>
<div class="post">
<?php endif; ?>
Forum: Everything else WordPress
In reply to: What’s pinging?Pings and trackbacks fall in the same category and basically do the following: say you write a very interesting article on your website. I could comment on it, but suppose it is rather lengthy, and I want to post it on my own site instead.
In that case I write an article on my own blog, and “trackback”, so I take the trackback link from your post, put it in the “trackback” field of my own post (in my own “write” page) and:
– my post will appear on my own site as my own post
– my post will appear on your site as a comment to the postpings are more sophisticated because they use a xml-rpc protocol, but basically do the same.
The beauty of this system has one downside: you can disable comments to avoid spam, but when trackbacking is allowed, comments (and comment spam) can still come through from unregistered users.
Forum: Themes and Templates
In reply to: Help a WP NewbieOk. Ok. I confess.
Forum: Plugins
In reply to: Cron job and wp-mail question – file created on rootYou can also do it without hacking wp-mail.php:
wget -O /dev/null https://yoursiteetc/wp-mail.php
(normally, wget outputs to a file, now it outputs to the unix drain)
Forum: Themes and Templates
In reply to: 1 cat, how to remove cat link below post?It’s in index.php and single.php. (and page.php?)
Forum: Themes and Templates
In reply to: put kubrick image info into css fileYou simply can’t put the header code into the css-file. The header is php-code, and is actually a small program, while the css is just css and will never get executed.
The problem is that in your css you need the complete url of the image, wordpress directory and probably hostname too. The code in the header.php does this for you.
If you want to do a css-only image, that is ok as long as you put the complete path (including the path to the theme directory) in your css. This makes it impossible to package your theme as a bundle and put it on another site, which is the reason it was not put in the css.
Forum: Themes and Templates
In reply to: Help a WP NewbieIt seems like you have a couple of theme files, you just can’t get them installed. That seems like something simple that you missed. Can you describe your problem more precisely? When you stare at something too long, you miss the small things, as we all know too well ??
In case you really need someone to look at it, do you have ssh access? ftp access?
Forum: Themes and Templates
In reply to: Themes without comment files?As far as I could see, if a file in a theme is missing it is automatically taken from the default. So yes, you should be able to copy it from the default and put it in your theme.
If you did a lot of work on your own theme, you probably need to hack the new file to fit in your theme.
Forum: Installing WordPress
In reply to: pre-installation queryWordPress allows you to use a prefix, which you can change. All your tables in one database get the prefix you set in wp-config.php. This way you can put more than one wordpress blog in the same database, by setting different prefixes for different blogs.
Forum: Fixing WordPress
In reply to: An alternative to <?php the_ID(); ?>the_ID()
echoes instead of returning a value, right? That is what gives an error.I haven’t tried it, but try
$id = $post->ID;
and let us know.Forum: Requests and Feedback
In reply to: upload.php & do_action hooksThe source is yours to play with. Just add them.
Forum: Fixing WordPress
In reply to: Comments on Static PageI noticed it too. In
page.php
, add the following line, right under “edit_post_link…” on line 16:
<?php comments_template(); ?>
before the next div.
Forum: Fixing WordPress
In reply to: An extra bullet appears on in my asides (Css List Styles help)Oh, your #menu is at 950 pixels from the left, while your menu is 160-something pixels wide, making your page 1100 pixels wide, which is too much for my 1024 pixels wide (and still most-used) screen. Did you mean 850 pixels from the left?
Forum: Fixing WordPress
In reply to: An extra bullet appears on in my asides (Css List Styles help)Your source code reveals:
<li><li><a href="https://windowssecrets.com/041202/#top1">Mozilla FireFox 1.0 Secrets</a></li>
Somehow, you generate an extra li, causing the bullet.How do you generate the list? It has no closing div either.
So it is not a CSS problem, but either a html problem or a php-problem.