marcoteu
Forum Replies Created
-
Forum: Hacks
In reply to: Get and display parent pages of a menu.Thanks for your reply Cammanderson!
Your code looks promising. I’ll look into it.Grts!
MarcoForum: Plugins
In reply to: "Custom Fields template" Why & Tags show up in the output??Resolved!
It’s probably not the most elegant way to fix this but it works fine for now.
I’ve used thehtml_entity_decode()php string function.So it looks something like this:
<?php $a = html_entity_decode($customfield_value); echo $a;?>Forum: Hacks
In reply to: Get and display parent pages of a menu.I hope this question gets some replies. It would be great so see how to deal with wp_nav_menu() in this situation.
Forum: Hacks
In reply to: Get and display parent pages of a menu.With wp_list_pages I use a code like this underneath. Can something similair been made with wp_nav_menu()?
<?php $parent_title = get_the_title($post->post_parent); $output = wp_list_pages('echo=0&depth=1&title_li=Top Level Pages&exclude=13,2' ); if (is_page( )) { $page = $post->ID; if ($post->post_parent) { $page = $post->post_parent; } $children=wp_list_pages( 'echo=0&child_of=' . $page . '&title_li=' ); if ($children) { $output = wp_list_pages ('echo=0&child_of=' . $page . '&title_li='.$parent_title.' '); } } echo $output; } ?>Forum: Fixing WordPress
In reply to: Pagination & query_posts()Thanks for your reply! I’ll take a look at that link and will let you know. 🙂
MarcoForum: Fixing WordPress
In reply to: Can post, but posts are blankMust be something wrong with the paths of/to your posts(?).
Forum: Fixing WordPress
In reply to: redesign site without the whole world seeing itXAMPP/MAMP is your solution. Install is very easy, only a few ‘clicks’.