ymous anon
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Pagination not working Category PageWas able to solve my problem using this
add_action('init','yoursite_init'); function yoursite_init() { global $wp_rewrite; //add rewrite rule. add_rewrite_rule("author/([^/]+)/page/?([0-9]{1,})/?$",'index.php?author_name=$matches[1]&paged=$matches[2]','top'); add_rewrite_rule("(.+?)/page/?([0-9]{1,})/?$",'index.php?category_name=$matches[1]&paged=$matches[2]','top'); $wp_rewrite->flush_rules(false); }Forum: Themes and Templates
In reply to: Pagination not working Category PageI tried the “fix” plugin, but it doesn’t seem to be doing anything for me. Any help would be greatly appreciated, as I’d like to be to have visitors peruse the pages.
Forum: Fixing WordPress
In reply to: JQUERY TABSI actually figured a solution —
Find the page id for 5369<?php
$my_id = 5369;
$post_id_5369 = get_post($my_id);
$content = $post_id_5369->post_content;
$content = apply_filters(‘the_content’, $content);
$content = str_replace(‘]]>’, ‘]]>’, $content);
echo $content;
?>Forum: Networking WordPress
In reply to: Media Uploader Not Working After Upgrade to WP 3.0.1Having same problem.
Forum: Fixing WordPress
In reply to: List Parent and ChildrenBascially what I have is
data being called up in a loop, then the page layout with css, then more data being called up.
The part I’m dealing with is not inside of a loop.
I tried all of the codes on the codex page and all of them just end up listing all of the pages. I’m not sure what is going on.
Forum: Fixing WordPress
In reply to: List Parent and ChildrenIt is NOT inside the loop, from what I’m understand.
Forum: Fixing WordPress
In reply to: List Parent and ChildrenHow do I know if it’s “inside the loop?”
Forum: Fixing WordPress
In reply to: List Parent and ChildrenI’m using genesis framework theme and placing the code in “framework.php” because that is where the page layout is. It’s not a sidebar, more like a custom div spot (on the page) for this item.
Forum: Fixing WordPress
In reply to: List Parent and ChildrenI’m placing it on the “Pages”.
I’ve got sort of a custom layout I’m building where this rests on the side of all of the pages.
Also, when I stated titlenamer was working, I actually was incorrect, it’s displaying the page title, not the title of the parent.
What I need is a menu that looks like this no matter which child page you’re on:
PARENT
____________
CHILD
CHILD
CHILD
CHILDForum: Fixing WordPress
In reply to: List Parent and Children<h2> <? echo $titlenamer ?> </h2>is working but the other half is listing all the pages still.Does it require the function?
As for the function, where should I place this code? How should I place it?
You lost me a bit on the “within the loop” bit.Forum: Fixing WordPress
In reply to: List Parent and ChildrenBy Example 3 you mean the third one under the link provided?
It’s still printing all pages and children.
Forum: Fixing WordPress
In reply to: List Parent and ChildrenI tried this:
List subpages even if on a subpage The above examples will only show the children from the parent page, but not when actually on a child page. This code will show the child pages, and only the child pages, when on a parent or on one of the children. This code will not work if placed after a widget block in the sidebar. <?php if($post->post_parent) $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); else $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0"); if ($children) { ?> <ul> <?php echo $children; ?> </ul> <?php } ?>but it’s showing ALL of the parents and children and not just the current…