Odenberg
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Problems with showing commentsIsn′t there anyone that can help me out?
Or is my question unclear and impossible to understand?
Forum: Fixing WordPress
In reply to: Problems with showing commentsPlease…
Forum: Themes and Templates
In reply to: Cant place 2 divs next to each otherTHANK YOU!
I tried float:left on both divs before and it didnt work. Totally forgot to try to set the secon div to float:right.
Thank one again!
Forum: Fixing WordPress
In reply to: Show Custom fields in the sidebarThank you so much!
I tried like 10 different “solutions”, non worked. But yours did. Do you know if there is a way to combine your code with a UL? Like wrap it in a UL or something?Forum: Fixing WordPress
In reply to: Add extra text to single postsThank you!
Custom fields is the answer. Now I just have to make them do as I want…Forum: Fixing WordPress
In reply to: Problems with showing commentsAnyone? Please…
Forum: Fixing WordPress
In reply to: Problems with widgets in multiple sidebarsOkey. I missunderstood how to do it, and here is the very solution:
STEP 1: functions.php
Register the sidebars in the function.php like this:
( function_exists(‘register_sidebar’) )
register_sidebar(array(‘name’=>’sidebar1’,));
register_sidebar(array(‘name’=>’sidebar2’,));
register_sidebar(array(‘name’=>’sidebar3’,));STEP 2: index.php / page.php / category.php
Call the sidebar.php (or sidebar2.php if you have more than one sidebar template)
<?php include(“sidebar.php”); ?>STEP 3: sidebar.php
Create a div and add the widgetized sidebar you want to call with:
<?php if ( !function_exists(‘dynamic_sidebar’)
|| !dynamic_sidebar(‘sidebar1’) ) : ?>
<?php endif; ?>STEP 4: css file
Style the div where you put the ‘dynamic_sidebar’Swanson, THANKS A LOT for pointing me in the right direction.
Forum: Fixing WordPress
In reply to: Problems with widgets in multiple sidebarsThanks a lot! Now it works!
I replaced the code in my first post with:
index.php
<?php if ( !function_exists(‘dynamic_sidebar’)
|| !dynamic_sidebar(‘sidebar1’) ) : ?>
<?php endif; ?>page.php
<?php if ( !function_exists(‘dynamic_sidebar’)
|| !dynamic_sidebar(‘sidebar2’) ) : ?>
<?php endif; ?>functions.php
( function_exists(‘register_sidebar’) )
register_sidebar(array(‘name’=>’sidebar1’,));
register_sidebar(array(‘name’=>’sidebar2’,));BUT, since my sidebar1.php and sidebar2.php is no longer in use, all my styling disappeared. And now I dont have any div ids/classes to style in my css. So how can I apply my old styling to the sidebars?
Forum: Fixing WordPress
In reply to: Problems with widgets in multiple sidebarsAnyone? Please, I really nedd some help…
Forum: Fixing WordPress
In reply to: Dynamic menu highlighting with WordPress menusI just did that. I put
li.current-menu-item a {background: black; }
in my themes css.Forum: Fixing WordPress
In reply to: Add extra text to single postsThank you, but that’s not what Im looking for.
I would like to add some extra sentenses (and links) to some posts. The additions are not the same for all posts. Excerpts dont work, since the posts are of different length. Placing it in the single.php will not work since then it will be the same addtion to all single posts.
Is there a way to hide a part of a single post?
Forum: Fixing WordPress
In reply to: Add extra text to single postsI made my own theme and it contains a single.php file.
I want to add dome extra text in the end of the post that only shows as single post. How can I do that? Im very greatful for all help I can get.
Forum: Fixing WordPress
In reply to: Add latest Posts on a static PageWhen Im finished with the site. Hopefully in about a week ??
Forum: Fixing WordPress
In reply to: Add latest Posts on a static PageYes, I got two loops. One regular blog loop showning 10 posts/page (set in admin) and one extra loop on a page that shows the title and featured image of the 5 latest posts.
To specify category, add:
&category_name=xxx
right after =5 in my example above
Forum: Fixing WordPress
In reply to: Add latest Posts on a static PageThanks everyone!
I figuered it out. It was acually very easy. What I did was:1. I created a separate page template called ‘Start Page’ and first in the document I put:
<?php
/*
Template Name: Start_Page
*/
?>2. I put the regular Loop in the page, just as usual.
3. Then I put this code:
<?php query_posts(‘showposts=5’); ?>
Just before the Loop.