davidandre
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: code base 64Thanks WPyogi,
I think you are right. Too bad i really like this theme but that s life.
thanks for the advice,
cheersForum: Fixing WordPress
In reply to: Coding for SubpagesHi csisball,
I guess your theme is using with the wp_list_page of the 2.9 wordpress version. So open your header.php and localize the wp_list page function and change the depth like that:
<?php wp_list_pages('title_li=&depth=0'); ?>
Then you ll have to deal with css. to show the child page just when hover.
Hope it helps,
byeForum: Fixing WordPress
In reply to: Parent / Child Secondary Nav LinksHi dmt,
I am not sure i understand want to want . Do you to appears the content of the parent page in the child pages?In this case you could try with:
<?php get_page( $page_id ) ?>
Forum: Fixing WordPress
In reply to: How to remove amung.us/small.jsHi MTV,
Have you checked in the header.php between<head> </head>
?Forum: Fixing WordPress
In reply to: custom post type with custom attributes/parameters?Hi,
you could use tags or may be have a look on taxonomy stuffForum: Fixing WordPress
In reply to: How to add horizontal line between postsHi neer,
you delete line 130 until 135 in your pastebin.com and you print the Jattet code<div class="post-excerpt"></div> <div class="clear"></div> </div> <div class="separator"></div> <div class="associated-post"> <h3 class="post-title">
dont forget to add the css in your style css. no matter where
good luckForum: Fixing WordPress
In reply to: jquery hide/show elementYeap you are right!
I was with the version 1.3.2
i ve just changeg to the 1.4
and it work just fined!
Thanks alot ! you saved my day.
cheersForum: Fixing WordPress
In reply to: jquery hide/show elementAn ID has to be unique on a page in order for it to be valid. You are assigning the ID of “same” to all four the pages that you’re showing, so that might be messing something up. Try changing id=”same” to class=”same” or id=”same_<?php echo $count ?>”
There is a space before the closing bracket of the <h2> element.Yeap you are right thanks!
Still not working:(
I am working in local so cannot give you a link.
But i have this alert with mozilla:
Error?: $(“h2”).nextUntil is not a functionForum: Fixing WordPress
In reply to: jquery hide/show elementOk,
i followed your instructions but no win:)
here my code in page.php:`<div id=”col_txt”>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?><?php if ( is_front_page() ) { ?>
<h2><?php the_title(); ?></h2>
<?php } else { ?>
<h1><?php the_title(); ?></h1>
<?php } ?><?php the_content(); ?>
<?php endwhile; ?>
<?php
if ( is_page(‘4’)){ ?><?php
$pages = get_pages(‘child_of=’.$post->ID.’&sort_column=post_date&sort_order=desc’);
$count = 0;
foreach($pages as $page)
{
$content = $page->post_content;
if(!$content)
continue;
if($count >= 4)
break;
$count++;
$content = apply_filters(‘the_content’, $content);
?>
<div id=”same”><h2 ><?php echo $page->post_title ?></h2>
<?php echo $content ?></div>
<?php
}}
?>`
Thanks i appreciate your help, always coolForum: Fixing WordPress
In reply to: jquery hide/show elementHummm
i dont understand …
I don t have other javascript code, i disabled plugins and no way
i have jquery well loaded.
It doesn t hide the paragraphs between h2
so i decided to do that via css display:none
I try your code again without the line to hide the elements and no luck!Forum: Fixing WordPress
In reply to: jquery hide/show elementHi curtiss,
Thanks alot, but it doesn t work
arfffffForum: Fixing WordPress
In reply to: jquery hide/show elementHi racer,
yeap sorry in my first post i didn t post the right code.
so p is a paragraf,
and h2 in an html h2.
i could use a class but this is the same probleme,
if i click on one h2 all the paragraph are open.<h2 ><?php echo $page->post_title ?></h2> <?php echo $content ?>
And the “p” is inside the content
You code don t work,
Anyway thanks for your helpForum: Fixing WordPress
In reply to: jquery hide/show elementjQuery(document).ready(function() { jQuery('#p').hide(); jQuery('h2').click(function() { jQuery('h2+p').slideToggle(400); return false; }); });
this is my code. any help?
Forum: Fixing WordPress
In reply to: Best Practice For Article Sorting Categories Or Tags?No ,
A is one category
B the second one
until ZThen you put
<?php wp_dropdown_categories( $args ); ?>
to show a drop down
and hop hopForum: Fixing WordPress
In reply to: Best Practice For Article Sorting Categories Or Tags?yeap you could use page ans child page system and call the just the parent A,B,C.. in the menu .Change the loop of the page to get just the title of all child page,
or category A to Z and call the category in the menu .Maybe the fastest and easier way