andregois
Forum Replies Created
-
I have the same problem, any solution?
Forum: Plugins
In reply to: [VideoGall] [Plugin: VideoGall] Fatal error: Allowed memory sizeI had the very same problem.
The problem was this line in videogall.php:ini_set("memory_limit","50M");It was putting a cap on global WP available memory.
I found out using a memory usage plugin (WP-Memory-Usage). Every time I activated Videogall the memory limit would jump from 128M (as defined in php.ini) to 50M.
Editing this line solved the problem.Forum: Plugins
In reply to: Videogall plugin doesn't workSame problem here..
Anyone?
Forum: Fixing WordPress
In reply to: jump to current_page_itemI got it!
In case someone has the same need, you can edit classes.php in wp-includes folder.
add a new variable (ex. $anchorname) to:
if ( $page->ID == $current_page ){ $css_class[] = 'current_page_item'; $anchorname = 'link_name';}then add it to $output below like this:
$output .= $indent . '<li class="' . $css_class . '"><a>ID) . '" title="' . esc_attr(apply_filters('the_title', $page->post_title)) . '" name="' . $anchorname . '">' . $link_before . apply_filters('the_title', $page->post_title) . $link_after . '</a>';if you check your output your link now has a name=”link_name” 🙂
Hope this helps someone else.Forum: Fixing WordPress
In reply to: jump to current_page_itemI figured out what I want to to do is to add an anchor to the link (on the list generated by “wp_list_pages”) that corresponds to the the current page (current_page_item).
Does anyone know how to achieve this?
Thanks a lot!
Forum: Fixing WordPress
In reply to: jump to current_page_itemanyone?
Forum: Fixing WordPress
In reply to: jump to current_page_itemFrom what I understand “scrollIntoView” needs an objectID as target.
But wp_list_pages generates “current_page_item” as a Class.Is there anyway arround this?
Thank you all.
Forum: Fixing WordPress
In reply to: jump to current_page_itemThank you. I will try that.
Forum: Fixing WordPress
In reply to: list only second level pagesThank for your answer. Sorry I didn’t make it clear.
I have a structure like this:
level 1a
-level 2a
-level 2b
level 1b
level 1c
-level 2c
–level 3a
–level 3b
-level 2dwhen I’m at “level 3a”, for instance, it lists all level 2 pages (2a,2b,2c & 2d) instead of just the ones in the same tree (2c & 2d).
I have one different DIV for each level.
Thank you again!
Forum: Fixing WordPress
In reply to: list only second level pagesI have a problem I didn’t notice before.
When I’m in a 3rd level page this code lists all 2nd level pages and not only the ones in the same tree as the current page.
What do I need to change to get the right behavior?
Thanks for your help again.
Forum: Fixing WordPress
In reply to: list only second level pagesIt worked!
Thank you very much!
Forum: Fixing WordPress
In reply to: 3 column navigationanyone?
Forum: Fixing WordPress
In reply to: 3 column navigationI have 3 DIVs, 1 per level right now, the code is:
<div id="menu1" class="menu1"> <ul role="navigation"> <?php wswwpx_fold_page_list('depth=1&sort_column=menu_order&title_li='); ?> </ul> </div> <div id="menu2" class="menu2"> <?php if($post->post_parent) $children = wswwpx_fold_page_list("title_li=&depth=1&sort_column=menu_order&child_of=".$post->post_parent."&echo=0"); else $children = wswwpx_fold_page_list("title_li=&depth=1&&sort_column=menu_orderchild_of=".$post->ID."&echo=0"); if ($children) { ?> <ul> <?php echo $children; ?> </ul> <?php } ?> </div> <div id="menu3" class="menu3"> <?php $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0'); if ($children) { ?> <ul> <?php echo $children; ?> </ul> <?php } ?> </div>If I just have menu 1 and 2 it works, but can’t make menu3 work (and it also breaks menu 2)
Forum: Plugins
In reply to: [Plugin: WP-dTree] wp-dtree and qtranslateHas this been solved? It would really be great to be able to use this two plugins.
Thank you