nagyv
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Own flag doesn’t changeYes, thanks for your time! en_US.png works
changin class-ss-util.php, line 197 to
$extracted_url = self::origin_host . ':' . $extracted_url;
solves the issue
Forum: Plugins
In reply to: [Category Posts Widget] How to use it with the_widget function?The solution is
the_widget('categoryPosts\Widget', 'cat=3&title=Testing');
Forum: Fixing WordPress
In reply to: Menu for post formatThanks, I’ve managed to add a menu using
<?php echo '<a href="' . get_post_format_link( get_post_format() ) . '">' . get_post_format_string( get_post_format() ) . '</a>'; ?>
Forum: Fixing WordPress
In reply to: Menu for post formatI didn’t mean exactly this, but something similar. Instead of using categories I would like to use the post format that I have to specify for every post, and create a menu from these.
Forum: Fixing WordPress
In reply to: list pages and subpages by section (child_of and ?)Although the original author did not posted for a while, the problem still exists. I have tried to accomplish something very similar. I have this page structure:
– People
– Places
– – Here
– – There
– Things
– – shiny things
– – – tin foil
– – – mirror
– – – magic stone
– – ugly things
– – scary things
– – – my neighbor’s cat
– – – bumpy knightsIn general I list only the first level of them, that works great, but at some point I would like to list a given branch of a given (this is important!) node.
I could find out how to prepare the unordered menu list by backward walking on the page-parent structure, until finding the page with the given ID, and then I run a wp_list_pages(child_of=given-ID).The only problem is that it does not set the current_item class in the unordered list.
I use this code before the content loop:
<?php
$parent[0] = $tmp = $post;
while($parent[0]->post_parent != 10){
$parent = query_posts('page_id=' .$parent[0]->post_parent);
}
?>
<div id="menu">
<div class="header">guid;?>"><?php echo $parent[0]->post_title;?></div>-
<?php
wp_list_pages('title_li=&sort_column=menu_order&child_of='.$parent[0]->ID); ?></div>
<?php
query_posts('page_id=' .$tmp->ID);
unset($parent, $tmp);
?>