radiofranky
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: listing subpages only from parent pageHi,
thanks for your reply. But that was my real question.
How do you do dynamically in the template retrieve two level down and nothing else. ??Forum: Fixing WordPress
In reply to: post_meta in WP_Query‘meta_key’ => ‘cf1’ <= custom field?
is the key or the value of the key?
for example, I have a custom field called “video”
and value “HD” or “standard”if I want to list videos with “HD” I would lput ‘meta_key’ => ‘HD’?
thanks
Forum: Fixing WordPress
In reply to: read next page with title as linkthis code will read back the current subpage. is there anyway to offset by 1 and pass through query_posts so that it ready “subpage2” while on subpage1?
thanks
<?php query_posts($query_string ); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <?php endwhile; else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?>
Forum: Fixing WordPress
In reply to: read next page with title as linkI’m working a the template and this is what I’m trying to achieve.
i have a parent page named “video 1”
and have 5 sub-pages which breaks down video 1 into 5 clips. 10 min each on youtube.while I’m watching the subpage 1, I want to have title of subpage 2 list below as a link. When I’m watching subpage2, I have subpage 3 listed as a link until and go on until it reaches the last subpage, which is subpage 5.
I think “previous_post_link();” will do the job but I’m not sure how to do a while loop to read all the subpages available in current page level – under parent “video 1”. If the loop works, maybe i can use “previous_post_link(); function.
again, thanks for the help
Forum: Fixing WordPress
In reply to: how do I reformat $p_time = $page -> post_date;?$p_time = $page -> post_date;
$output = date(“F d, Y”, strtotime($p_time));
this one should work, but somehow after F d, Y it returns PM/AM
I think there is something to do with “post_date” format
Forum: Fixing WordPress
In reply to: how do I reformat $p_time = $page -> post_date;?thanks, but it doesn’t work. it returns Dec 31, 1969
I’m on a parent page and want to display the latest child post date.
Forum: Fixing WordPress
In reply to: get subpage post date instead of parent – how?i got it working but the problem is the format
<?php relative_post_the_date($page -> post_date); ?>2010-05-29 23:35:56
I want to display Jun 06, 2010
Forum: Fixing WordPress
In reply to: parent -> child, but now is display parent -> grandchildi got it working! ??
Forum: Fixing WordPress
In reply to: adding a post option in page posting pagei tried but it always shows the key value.
key: video_quality
value: HDI want to show “HD” only
Forum: Plugins
In reply to: [Plugin: CMS Tree Page View] jQuery cookie missingi went back to wp 2.9.2 and 0.4.9
https://localhost/wp-admin/%EF%BB%BFhttps://localhost/wp-admin/page.php?action=edit&post=2023
You don’t have permission to access /wp-admin/???https://localhost/wp-admin/page.php on this server.
thanks
Forum: Plugins
In reply to: [Plugin: CMS Tree Page View] jQuery cookie missingHi,
I’m using wp 3 and your 0.5.3. It’s stuck at loading.Forum: Plugins
In reply to: [Plugin: CMS Tree Page View] Not Working in 2.9.2Hi,
I’m using 0.4.9 for wp 2.9.2 and it was working before, but not sure what happen. This is in the URLhttps://localhost/wp-admin/%EF%BB%BFhttps://localhost/wp-admin/page.php?action=edit&post=2023
You don’t have permission to access /wp-admin/???https://localhost/wp-admin/page.php on this server.
thanks
Forum: Fixing WordPress
In reply to: how to display grandchild with wp_query?I got it working but if you have better way, please let me know. thanks
<?php $parent_id = get_the_id($post->post_parent); ?> <?php $page_id = $parent_id; ?> <?php $args=array( 'post_parent' => $page_id, 'post_type' => 'page', 'post_status' => 'publish', 'posts_per_page' => 100, 'caller_get_posts'=> 1 ); $my_query = null; $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?> <?php $parentid=array(post_id); ?> <div class="main_post_listing2"><a href="<?php the_permalink() ?>" target="_blank"rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">› <?php the_title(); ?></a> <?php $children = wp_list_pages("depth=1&title_li=&child_of=".$post->ID."&echo=0&sort_column=post_date"); $titlenamer = get_the_title($post->post_parent); ?> <ul class="show_sub_page_main"><?php echo $children; ?></ul> <?php the_time('M d, Y') ?> </div> <?php endwhile; } wp_reset_query(); // Restore global post data stomped by the_post(). ?> </div>
Forum: Fixing WordPress
In reply to: how to display grandchild with wp_query?Hi Michael,
this is what I’m trying to achieve.I have list of video titles set as parent and I used the code shown above to list all the parent titles.
But each parent page has sub-pages assigned to it. For example, for this particular video ABC, I have 5 sub-pages.
I want to be able to show like this.
video title parts date added
abc video 1, 2, 3, 4, 16 June, 2010thanks for your help.
Forum: Fixing WordPress
In reply to: how to display grandchild with wp_query?Hi,
I understand what you mean, but php is not my forte.
Could you show me how to code it?thanks