xrun
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Get number of posts in a catHere’s what I got so far, using a slightly different function. This correctly outputs a list of category names, limits the list to category 7, and shows the number of posts in it.
The ‘&echo’ part may be redundant, but was put in there while experimenting cause it’ll just hide the entire output.$count = wp_list_categories('count=1&include=7&echo=1');
However, I dont need to actually display the name of the category or the number. What I’m working towards is showing a link depending on the value of the post count. If the count is too low the link should not be displayed.
Edit:
I need to apologize, your code does exactly what I was asking for. Now I just need to determine if the link should be shown or not.Forum: Themes and Templates
In reply to: Get number of posts in a catSeems like I spoke too soon. I need to display a link if the number of posts in the given category is higher than a given integer.
I was trying to work it out based on the code samples, but I’m not getting it. When trying to display the number of posts by echoing the count I only get the word “count” echoed on the page.Forum: Themes and Templates
In reply to: Get number of posts in a catGood. Thanks. ??
Forum: Themes and Templates
In reply to: Get number of posts in a catExcellent. Can this be included in the page as written in the dashboard, or do I need to install a plugin to allow php in a post/page?
Forum: Fixing WordPress
In reply to: Subdomain malfunction after upgrade to 3.2.1Yes I did. Doublechecked.
Forum: Themes and Templates
In reply to: 2×3 rectangular post list layoutYes, that did the trick. Thank you.
Forum: Fixing WordPress
In reply to: Posting by email or mmsbump
Forum: Themes and Templates
In reply to: 2×3 rectangular post list layoutStill doesn’t work. This is the css for the news page, margins should be good and no clears anywhere. I’m kinda stuck.
div.center-blog { width:580px; float:left; margin-right:5px; margin-top:3px; } div.center-blog-newspage { width:240px; float:left; margin-right:5px; margin-top:3px; } div.post-title-newspage { margin:0px; padding:4px; padding-top:6px; padding-left:8px; height:16px; background-image:url(images/title-header.gif); } div.post-content-newspage { background-color:#FFFFFF; margin:0px; padding:5px; text-align:left; border-top:#000000 1px solid; border-bottom:#000000 1px solid; } div.post-meta-newspage { color:#ddd; margin:0px; padding:4px; padding-left:8px; height:14px; margin-bottom:16px; background-image:url(images/post-footer.gif); }
And in the page-news.php:
<div class="center-blog"> <div class="center-blog-newspage"> <?php query_posts('cat=7&showposts=9'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post-title-newspage"> <h2><a class="title" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2> </div> <div class="post-content-newspage"> <?php the_content(''); ?> <?php edit_post_link('Rediger innlegget.', '<p>', '</p>'); ?> </div> <div class="post-meta-newspage"> <?php the_time('j. F, Y'); ?> <?php the_time('H:i'); ?> av <?php the_author(); ?> <?php wp_link_pages(array('before' => '<p><strong>Sider:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> </div> <?php endwhile; endif; ?> <?php edit_post_link(' Rediger side.', '<p>', '</p>'); ?> </div> </div>
Forum: Themes and Templates
In reply to: 2×3 rectangular post list layoutOk, so in the page-news.php i put a div for the page contents at 580px wide, then one for the posts at 260px wide (will adjust to fit later), and this last one also has a float:left; in the css? I tried that, but all the posts listed below eachother in a 260px column to the left in the page contents area.
Forum: Plugins
In reply to: Need a chat plugin which does this…Cool. ?? Would you recommend any of these over the others, with the requirements I mentioned above in mind? I’m leaning towards BuddyPress Ajax Chat, but I have not really tested any of these before.
Forum: Fixing WordPress
In reply to: Getting base domain urlResolved by using custom buddypress functions and code for the links to certain profile screens. See buddypress.org forums.
Forum: Themes and Templates
In reply to: How to check if sidebars are loaded?Issue solved by using buddypress conditional tags:
https://codex.buddypress.org/developer-docs/conditional-template-tags/No problem ??
I would add it as the last line under both these:
#site-title {
float: left;
margin: 0 0 18px 0;
width: 700px;
font-size: 30px;
line-height: 36px;
text-indent:-1000px;
}and
#site-title a {
color: #000;
font-weight: bold;
text-decoration: none;
text-indent:-1000px;
}I’m pretty sure you only need it in the first one though. The second one styles the title link, but the title is already moved out left, so it wouldnt be visible anyway.
There is also a style.css, and this is the main file for most of the styles used in the entire theme, including the header title section.
This is not normally an issue, but if it isn’t listed on the theme edit page inside the wordpress control panel on your site, you can fetch it from your server and edit it locally on your computer, then upload it back to the same location.
You may add style=”text-indent:-1000px;” to any div in the php files to move text contained in that div out to the left, but the regular way to do it is in the css.