nadine00
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Header Warning pluggable.phpOk, I did that, but I’m still getting the same error. Any other suggestions?
Forum: Fixing WordPress
In reply to: Restricting child pagesThank you!
Can you explain what you’ve done? I’ve never used caller_get_posts before. Also will wordpress 3.0 have simpler depth handling for get_pages() ?
Thanks again for your help. That really had me stumped for a long time.
cheers
Nadine.
Forum: Fixing WordPress
In reply to: Restricting child pagesYep. That’s it. ??
Forum: Fixing WordPress
In reply to: Restricting child pagesOk. Done.
Forum: Fixing WordPress
In reply to: Restricting child pageshttps://work.nadinelessio.com/firstsecond/build/book-guides/
The older code is in there, and I only have the titles in for testing. The FAQ Pages are sub pages of the Volume 1 and Volume 2.
Trying to find a way so only Volume 1, and Volume 2 info shows up, but none of their children.
Forum: Fixing WordPress
In reply to: Restricting child pagesThat’s giving me only:
–Page grandchild
One level too far down.
Forum: Fixing WordPress
In reply to: Restricting child pagesClose….
If I have:
Page
-Page child
–Page grandchild
—Page great grandchildI only want to display:
-Page child
Its a landing page. So, the landing page is the Parent page, and everything displayed is going to have always have the same parent.
Nadine.
Forum: Fixing WordPress
In reply to: Restricting child pagesStill tinkering with this. Any ideas? Sorry for the questions. :-/
thanks.
Forum: Fixing WordPress
In reply to: Restricting child pagesHmm. That’s showing all the subpages.
If I change this posts.post_parent = 0 to this posts.post_parent = 9 it just puts me back at the same spot: Lists all the children of page 9.
I need to limit the sub pages so it only shows the first level of children, not the second level of children.
Forum: Fixing WordPress
In reply to: Query HelpI was looking at JOIN, I’m not sure how it would be worked into my current query setup tho. I can tinker with is a bit, but if you have any suggestions on formatting, I would appreciate it. Also thanks for the note on $currow. I will try it out! ??
Forum: Fixing WordPress
In reply to: Setting up post dataok trying this:
<?php $querystr = "SELECT * FROM $wpdb->postmeta, $wpdb->posts WHERE meta_key = 'grade-type' AND meta_value like '%Post Secondary%' ORDER BY wposts.post_date DESC "; $pageposts = $wpdb->get_results($querystr, OBJECT); ?> <?php if ($pageposts): ?> <?php foreach ($pageposts as $post): ?> <?php setup_postdata($post); ?> <h4><?php the_title(); ?></h4> <?php endforeach; ?> <?php else : ?> <h2 class="center">There seems to be a glitch here.</h2> <?php endif; ?>
I am not a programmer, but I am trying. Any suggestions? I am not sure about the above link’s example about joining.
thanks
Nadine
Forum: Fixing WordPress
In reply to: Setting up post dataHmm. That doesn’t echo the post_title. It still only echos the post ID only.
I was also trying something like this, from the general query example, but it comes out blank:
<?php $query = "SELECT * FROM $wpdb->postmeta WHERE meta_key = 'grade-type' AND meta_value like '%Post Secondary%'"; $rows = $wpdb->get_results($query); if ($rows) : foreach ($rows as $post) : setup_postdata($post);?> <h2><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <?php endforeach; else : ?> <h2> Not Found</h2> <?php endif; ?>
Forum: Fixing WordPress
In reply to: Setting up post dataAre you talking about everything from
if ($postids) {….
down in that example or the whole thing? Is there a way I can set up post data without changing the query line?
Sorry, for the questions, its probably right in front of me….my brain is rebelling this morning.
Forum: Fixing WordPress
In reply to: How to get a serialized optionHmm. I’m trying to pull serialized data out of custom filed. Would you have any suggestions on how to use this method in that kind of set up?
https://www.ads-software.com/support/topic/394398
using the get_post_meta() just comes back blank:
<?php $my_grade = get_post_meta($post->ID, 'lesson-type', true); echo( $my_grade['Secondary'] ); ?>
Thanks for posting your trial and error findings btw. ??
Nadine
Forum: Fixing WordPress
In reply to: How to get data out of a custom field that holds an arrayOh I meant not working. “Here its just not working”. ?? Hmm. Is there a way to maybe do this another way?