I don't want to display subpages excerpt on parent page…
-
Hi, I am new with WordPress and the wounderful graphene theme. The support is very helpful and kind!
My first question:
Is it possible to sort a drop down menu from the parent page shown in the navigation bar? Like this:
parent
child 1
child 2
child …
in the child page?
The functions.php (see above) for the child theme works fine, but it shows the main navigation:
parent parent … parent
function graphene_child_pages_order(){
$args = array(
'child_of' => $post->ID,
'sort_column' => 'menu_order',
'hierarchical' => 0,
'parent' => $post->ID,
'post_type' => 'page',
'post_status' => 'publish'
);
return $args;
}
add_filter('graphene_child_pages_args', 'graphene_child_pages_order');My second question:
The excerpt lost all <p> and styles. Is it possible to change this?
Many thanks for your support!
Admintvh: looks like it’s working fine for you now.
dabrowski: you’re welcome 🙂
findelfisch: not quite sure what you’re trying to achieve here. If you’re just trying to arrange the order of the menu items in the navigation menu, try using the Custom Menu function instead in Appearance > Menus.
Regarding the excerpt, it’s standard WordPress behaviour that it strips out all of the html tags. You can look for some plugin that allows html tags instead.
Viewing 6 posts - 11 through 16 (of 16 total)
- 1
- 2
- You must be logged in to reply to this topic.