utopiad
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Different sidebar on different pagesAh yes that’s correct.
You as admin have User ID number 1. That means you have to set the link to only show: “if $user_id = 1”
Check the codex on how to do that exactly.
Forum: Fixing WordPress
In reply to: Different sidebar on different pagesMy last post contained a small mistake:
<?php } else { ?> should be <?php } elseif (is_page()) { ?>
This is how it’s supposed to be:
<?php if (is_page(“mypage”)) { ?>
The menu items I want to show at mypage
<?php } elseif (is_page()) { ?>
The menu items I want to show at the other pages
<?php } ?>Hope it’s useful to someone!
Forum: Fixing WordPress
In reply to: Different sidebar on different pagesNever mind, fixed it:
<?php if (is_page(“mypage”)) { ?>
The menu items I want to show at mypage
<?php } else { ?>
The menu items I want to show at the other pages
<?php } ?>Great stuff ??
Forum: Fixing WordPress
In reply to: Different sidebar on different pagesThis is exactly what I’m looking for.
But I got a problem, my sidebar.php is configured differently and I’m not much into php.
Here’s what I got:
Atm it’s like this:
<?php if (is_page()) { ?>
All the menu items
<?php } ?>But I want different items to show at mypage
So I tried changing it to:
<?php if (is_page()) { ?>
<?php if (is_page(“mypage”)) { ?>
The menu items I want to show at mypage
<?php } ?>
<?php else { ?>
The menu items I want to show at the other pages
<?php } ?>
<?php } ?>But that didn’t work. Sidebar didn’t show.
Then I tried:
<?php if (is_page()) { ?>
The menu items I want to show at the other pages
<?php } ?><?php if (is_page(“mypage”)) { ?>
The menu items I want to show at mypage
<?php } ?>But now the sidebar showed twice, all the items and the items I want only to appear on mypage, so not useful either.
Then I tried adding endif, but not use either.
<?php if (is_page()) { ?>
The menu items I want to show at the other pages
<?php } ?><?php endif; ?>
<?php if (is_page(“mypage”)) { ?>
The menu items I want to show at mypage
<?php } ?>Can someone help me out?
Site is https://www.mijnamsterdam.com btw…
Forum: Fixing WordPress
In reply to: Help changing Permalinks structureI had more or less the same problem but I made a custom 404 page rerouting everybody to the route of my blog.
https://www.gumball-3000.com/rally/
Try it with any non existing page. Should work fine.
Forum: Installing WordPress
In reply to: video.google.comI saw a couple google videos incorporated in https://www.gumball-3000.com/rally/
Looks like they just used the ‘put on site’ code from google.
Forum: Everything else WordPress
In reply to: The best 3 wordpress site designs that you likeI like the copperfield design aswell…
saw it over at https://www.gumball-3000.com/rally/ and a couple other sites lately…
Forum: Installing WordPress
In reply to: Listing posts on category page alphabeticalIs it possible to add sub titles like: “May 2005”, “April 2005” etc on a category page?
I want to use it at the category pages of https://www.gumball-3000.com/rally/
Forum: Installing WordPress
In reply to: Listing posts on category page alphabeticalHaha I don’t know what I did and how I did it, but I managed to get my category pages to list the posts alphabetical except for 1 entry…
https://www.mijnamsterdam.com/category/eten-drinken/
Look the first starts with a C and the second post with an A ascending to Z… weird he?
Only adjestment I made was adding a plugin which allows me to set the max number of posts on category pages to 999, this was 10 normally, but now 11 posts are sorted alphabetical but 1 isn’t?!?!
Can someone help me out here…
Forum: Installing WordPress
In reply to: Listing posts on category page alphabeticalYou rock!!
Thanks a lot!
Forum: Installing WordPress
In reply to: EasyPHPalbumAh Ok thanks, will try that!
I was trying to do something like that but the index.php file of the photoalbum is a mess and I find it hard to figure out what to put where.
But I will keep trying ??
Forum: Fixing WordPress
In reply to: adsense fine @ x.com/index.php, incorrect @ x.com/Same problem here…
https://www.mijnamsterdam.com/ shows bikini string and swimsuit ads?!?!?!
https://www.mijnamsterdam.com/index.php? shows ads targeted towards my contentI was thinking no ads at the main page would make more sense then this bullshit ads.
:S