csleh
Forum Replies Created
-
I found it!
Use this code if you want default text to show if there are no related links chosen with this plugin:
<?php $related_links = get_related_links(true); if ($related_links) { ?> <?php foreach ($related_links as $link): ?> <p><strong><?php echo $link["type"]; ?></strong> <br> <a href="<?php echo $link["url"]; ?>"><?php echo $link["title"]; ?></a></p> <?php endforeach; ?> <?php } else { ?> <p>display this default text</p> <?php } ?>It’s also in conflict with CIMY user extra fields.
chartinael, I didn’t get it to work yet because I had to take that code out. You might want to start a new thread because that does sound unusual. Also, make sure the feature image is uploaded on the right side of the post/page, using the featured image link.
alchymyth, thanks!
the code is shortened, and posted here.
http://wordpress.pastebin.com/bHdXps16The first bit is some if/else I’m using now, the second is from twenty ten header.php I’d like to modify to have more than one default image (based on category/section).
Forum: Fixing WordPress
In reply to: adding an if statement to twenty ten loop.phpAnswered my own question. Added simple if/else to the PAGE.php template and it’s working perfectly.
Forum: Plugins
In reply to: faq you plugin formatting questionnever mind, I found a different plug in that is easier for me to format (with a lot of css fiddling).
It’s also easier to organize a long list of questions.
The code that shows those items is in the theme template files. What you want is to change the list titles to none.
Basically, add ‘title_li=’ to bits of code like this:
‘<?php wp_list_categories(‘include=5,9,23&title_li=’ ); ?> ‘Forum: Plugins
In reply to: Need help changing sidebar codeAssuming #sidebar is the right sidebar
`#sidebar {
display: block;
border: 0px;
padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 20px;
z-index: 5;
position: absolute;
top: 182px;
left: 0px;
}’
Change top: to something greater than 182px. this is only in relation to what the sidebar is absolutely positioned relative to; if the container that sidebar is in doesn’t have position:relative it’s hard to say where sidebar will show.Forum: Fixing WordPress
In reply to: listing with excerpts and subcategory titleThank you!
All current and future categories need to be children of 3 because of the navigation and structure. Now that works perfectly.
I’ve got this code on the category-3.php page, and regular category listing on category.php. Probably be easier with one template and an if/else statement, but time to move on to the next puzzle.
Forum: Fixing WordPress
In reply to: sort usersany ideas? I’d really like to sort by first name, since I’m using the fields slightly different than traditionally.
Forum: Themes and Templates
In reply to: Grid Issue with LoopIf you take out the div styling, do the 3 loops work?
If not, the problem right now is the loops.
If so, then the issue is probably css related.I can’t help with a loop problem, but for css, first trouble shoot by changing the h8 to h6 and style the way you like (#video h6{}). The browser might be having trouble with the non-standard declaration.
Or, it could be padding/margin/width in relation to the container, especially if ie is the browser. (is the container width greater than 552px?)The first post sounds like a float/clear issue, which is really common and there are lots of approaches to fixing – try google “css float clear gallery” or “css float clear grid” to find what will work best for you.
I only see one loop above though, pulling in 9 thumbnails from posts in Video. Which with floating should work, but there are also examples of having 3 loops in 3 columns.
Forum: Themes and Templates
In reply to: Line Spacing ISSUEtry adding
body{line-height:1;}
then take out the other line-height declarations from ul, ol, li, p. There doesn’t seem to be declaration for size anywhere, unless there’s one in body? Something like font-size:80% or such?
It’ll be easier then to adjust then all with something like ul, li, ol, p{line-height:1.4em;}.
Try using firefox and install the firebug plugin for firefox to quickly test out variations.
Forum: Fixing WordPress
In reply to: 2.8 – plugin templates showing in THEME adminStill happens in 2.8.4. I cannot edit category.php because the file also titled category.php inside a folder within the theme folder is the one that shows.
I think it’s generally handy IF plugin authors do not use the same name for their templates as wordpress defaults.
Forum: Plugins
In reply to: all authors custom fields?Never mind, I just changed to using company for first name and the users whole name for last name.
Forum: Fixing WordPress
In reply to: ftp suddenly doesn’t workWhew! MUCH google searching later, found a thread that suggests using “localhost” instead of host address, along with username, password.
It works but I was looking at a blank screen for a LONG TIME before install was successful. I’d start it then go away so you don’t notice how long it takes!
Forum: Fixing WordPress
In reply to: cart work with 2.8OK, I got shopp to work. Turns out was having javascript issues with firefox, so editing in safari worked for accessing and editing the products. Still can’t change permalink urls but willing to exchange that for being able to sell the product!
Still have an issue with wordpress showing me the contents of a folder within the theme — which means using the theme editor, I can’t edit the THEMEs category.php, only the SHOPP category.php.