deanhatescoffee
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Lightbox jquery Broken After 2.8 UpgradeTo use Lightbox on single images, just add
rel="lightbox"
to your<img>
tag.Example:
<img src="picture.png" alt="picture" rel="lightbox" />
Forum: Fixing WordPress
In reply to: Pretty Permalinks issue with 2.3Thanks roganty. I checked out that post and did as it advised, but that didn’t fix the issue. Any other ideas?
Forum: Fixing WordPress
In reply to: Pretty Permalinks issue with 2.3Can anyone help me with this?
Forum: Fixing WordPress
In reply to: Pretty Permalinks issue with 2.3Any ideas?
Forum: Fixing WordPress
In reply to: Pretty Permalinks issue with 2.3Givin’ this a bump before I sign off for the day…
Forum: Fixing WordPress
In reply to: Multiple Users and Access to PluginsYou’ll probably want to set their roles to Author.
See: https://codex.www.ads-software.com/Roles_and_Capabilities#Summary_of_RolesForum: Fixing WordPress
In reply to: Display Parent Category only….Oh wow, I completely confused myself into misunderstanding the purpose of this question. You want to show the parents, but not the child categories – I thought it was the other way around. Sheesh. Sorry ’bout that. I’m out of ideas. ??
Forum: Fixing WordPress
In reply to: Display Parent Category only….Bah, maybe not. Darn. I’m using this code on a friend’s blog and it’s only displaying the sub-category, not the main category. I do remember that at one time both the main and sub-categories were displayed, but now I can’t seem to figure out how we figured that out.
Forum: Fixing WordPress
In reply to: Display Parent Category only….Aw snap, I’m sorry, I was thinking of wp_list_pages. My apologies.
@ nico & bmg – This should do it:
<?php echo "Category: ";the_category(','); ?>
Forum: Fixing WordPress
In reply to: Publish TabThis is an old screenshot, but it’s basically the same:
https://codex.www.ads-software.com/Image:writepost.pngBTW, it’s not a publish tab, it’s a publish button. ??
Forum: Fixing WordPress
In reply to: Display Parent Category only….<?php the_category('depth=1') ?>
That will show only the first level (depth=1) of categories.
Forum: Fixing WordPress
In reply to: How to get all my sidebars to work not just one.@ moshu – My Fight theme has 4 sidebars; well, 1 on the side, 3 on the bottom, but they’re all widgetized and functioning.
Forum: Fixing WordPress
In reply to: LinksOh, as for where to add the PHP code – that would go in your header.php file, (probably) immediately after the header image. It depends on your theme, but you’re not going to break anything by adding it to the very end of header.php – just see how it looks from there.
Forum: Fixing WordPress
In reply to: LinksJust add something like this:
<ul id="pages"> <?php wp_list_pages('title_li=&depth=1&sort_column=menu_order'); ?> </ul>
That will display your pages. Then you’ll need to modify the CSS so that #pages li doesn’t show a bulleted list (which is the default behavior). Add something like this to your stylesheet:
#pages li { border-left: 1px solid #666666; border-right: 1px solid #666666; display: inline; padding: 0 5px; }
That will add a 1px line on each side of each link/page.
EDIT: Sorry, forgot part of the CSS. You’ll want to add something like this too:
#pages { float: left; list-style: none; margin: 3px 10px; padding: 0 20px 15px 20px; text-align: left; }
That’s the code that actually tells the list to not be bulleted.
Forum: Fixing WordPress
In reply to: Using variablesYou should look into conditional tags. Here’s an article I wrote about ’em – they should do the trick. Basically, with conditional tags, you can display certain things on certain pages which sounds like what you’re trying to do.