mastron
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Link category to pageGot it:
<?php
if (is_page(‘Nieuws’)) {
query_posts(‘cat=4’);} else if
(is_page(‘Lokaal’)) {
query_posts(‘cat=5’);} else if
(is_page(‘Gemeente’)) {
query_posts(‘cat=6’);} else if
(is_page(‘Sport’)) {
query_posts(‘cat=7’);} else if
(is_page(‘Cultuur’)) {
query_posts(‘cat=8’);} else {
query_posts(‘cat=’ . $events_cat . ‘&paged=’ . $paged);
}
?>Forum: Themes and Templates
In reply to: Link category to pageI understand what you are saying. I would prefer to do it that way and use category selection in my menu. But the thing is that I am using a plugin to show my pages:
https://goudendouche.com/dropdown-menu-plugin/
This plugin shows the pages and not the categories, please have a look at the site that I am working on:
Forum: Themes and Templates
In reply to: Link category to pageI need to use pages. My menu is built up on the pages I made, so a category list does not work for me.
If I use a category template I have to make 10 category pages and I like to use one page.
Is it posible and how?
Forum: Fixing WordPress
In reply to: Keep sidebar page slection pressedAnybody a better sollution?
Forum: Fixing WordPress
In reply to: Keep sidebar page slection pressedHmm. Sounds like a sollution. But a complex one. My php skills are not that good but i’ll give it a go.
But isn’t there an easier way to do it?
Forum: Themes and Templates
In reply to: remove li from wp_list_pagesThx it all works great!!
Niel
Forum: Themes and Templates
In reply to: remove li from wp_list_pagesI’ve been staring at you code and came up with the following:
<?php $pages = wp_list_pages(‘sort_column=menu_order&exclude=79&title_li=&echo=0’);
$pages = str_replace(‘<li class=”page_item”>’, ”, $pages);
$pages = str_replace(”,'<br>’, $pages); echo $pages; ?>I placed a <br> on the last line to brake it and it works good. But now once I select a page and the page is loaded the page text in the sidebar jumps in, like:
Pages
page 01
page 02
page 03
etc.were page 01 is the selected page. I’ve been looking through my css if the error is in ther but if I look at the code I see this:
<li class=”page_item current_page_item”>Intro<br>
So the <li … is making it jump in. I’ve been playing arround with the code you gave me but I gave me know answer.
As you have noticed, I love wordpress … but php is not my thing. I really appreciate you help on this!!
THX!!
Niel
Forum: Themes and Templates
In reply to: remove li from wp_list_pagesHi Kafkaesqui
It works … but not perfect. The thing I am getting now is:
Page 01 Page 02
Page 03 Page 04Instead of
Page 01
Page 02
Page 03
Page 04Is there anyway to break it?
Thx
Niel