nyckidd
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: show child pages of parent page on homepageyeah when i say custom fields i mean the magic field entries…they are setup as pages so when i try to edit the page order field it does not apply on the pages..
Forum: Fixing WordPress
In reply to: show child pages of parent page on homepageam back but not for the same thing…rather the orderby seems not to be working..
i have it as
<?php query_posts('post_type=page&orderby=asc&posts_per_page=5&post_parent='.$post->ID); ?> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
but when i manually assign order id’s to the magic field entries ie the child pages they dont adapt the order …..
Forum: Fixing WordPress
In reply to: show child pages of parent page on homepagedude you roc bro!! that worked hope i dont come back here again brah!!
Forum: Fixing WordPress
In reply to: show child pages of parent page on homepageHey jackson really appreciate your help am not a php novice so how and where exactly do i change/add/edit the code ?
my home.php file looks like this..
Forum: Fixing WordPress
In reply to: show child pages of parent page on homepagegot another bummer situation…
my code looks like this below…what i would like is to show the parent page content on the top then the child page content at the bottom what do i need to tweak in the parent page query to make this happen coz as it is now its grabbing the latest parent page that i create which is not what i want…
<?php query_posts('post_type=page&posts_per_page=1&post_parent='.$parent); ?> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> i want my parent page content here <?php endwhile; ?> <?php wp_reset_query(); ?> <?php query_posts('post_type=page&posts_per_page=5&post_parent='.$post->ID); ?> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> my content for the child pages <?php endwhile; ?> <?php wp_reset_query(); ?>
and the other under
Forum: Fixing WordPress
In reply to: show child pages of parent page on homepagejackson, thanks that worked out pretty well….let me have a look at the WP_Query object see if it will help out…actually let me just rea the article you just linked to…thanks
Forum: Fixing WordPress
In reply to: child pages query ?Thanks esmi….i used the query_posts and it worked like a charm
Forum: Fixing WordPress
In reply to: Read More tag to read less?hey how did you customize the read more and read less ? i want to put read more to have an up arrow and read less a pointing down arrow
Forum: Fixing WordPress
In reply to: Disable usernameEssentially I just wanna hide the username field with a default value
Forum: Fixing WordPress
In reply to: Disable usernameThanks for the quick reply , just to go around it how do i make the username a non required field ie it is not validated so I can simply enter any name and then hide the field using CSS ?
Forum: Plugins
In reply to: Display Link To Only Specific Role/Capability?i used your code but it did not work…did you get a workaround ?
Forum: Hacks
In reply to: display links to specific user roleshey i have like 5 user roles how do i show a link if user A from user role A is logged on ?
Forum: Fixing WordPress
In reply to: Show only posts from specific category wih paginationhey, thanks…when i have it this way it works
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=13&showposts=5&paged=".$paged); while(have_posts()):the_post(); ?>
but when i have it this way
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=13,53&showposts=5&paged=".$paged); while(have_posts()):the_post(); ?>
it pulls all the posts from both categories…
Forum: Fixing WordPress
In reply to: Show only posts from specific category wih paginationthanks…but i dont know where to place the code in the above code i posted…Help ??
Forum: Fixing WordPress
In reply to: custom post typeHey, i have 3.1 running but i have never used custom post types before is there a working example that shows you how to show the latest 10 posts from a custom type post/category ?