creativenauts
Forum Replies Created
-
Forum: Plugins
In reply to: [Meta for WooCommerce] Missing Required Information From DeveloperYour solution doesn’t work
Forum: Plugins
In reply to: [Rich Showcase for Google Reviews] Reviews not showingJust installed plugin… same issue, only shows the amount of reviews with link to view “all reviews” but doesn’t display the actual reviews within the page.
Forum: Plugins
In reply to: [Elastic Email Sender] sending a test does not workSend: OK
Email error: Email has expired and the status is unknown.
Forum: Plugins
In reply to: [Elastic Email Sender] Send test does not work: ERR_ABORTED 404this is still not fixed. Sending a test does not work!
I believe that I figured out the issue. I had a second dynamic pricing plugin enabled which was bugging out the system. All is working as expected now. Sorry for the confusion.
I’m using PHP 5.5+ on all machines.
This is one of the image tags displayed locally.
<img src="data:image/gif;base64,R0lGODdhAQABAPAAAP///wAAACwAAAAAAQABAEACAkQBADs=" data-lazy-src="/wp-content/uploads/2016/09/intro-hair-stylist.png" alt="Hair Stylist">The images are replaced by the placeholder and not displayed.
- This reply was modified 9 years, 1 month ago by creativenauts.
okay, so I printed pageID and it is showing the proper value :/
cedcommerce,
how do I make sure I’m getting page id in $pageID variable?
Were you able to pull in the_content() ? I just tried again, fresh install of wordpress, twenty16 theme and still no content is displaying, only page titles this go around.
I uploaded a screenshot so you can see with fresh install of wordpress, it’s only displaying the page title. I have no plugins or anything installed on this fresh install. All I did was create a few sample pages, made sure there was content placed in all of these pages and still, only showing page titles.
Michael,
Can you share the exact code, perhaps I’m missing something on my end.
I’m using:
<?php global $post; $pageID = $wp_query->post->ID; $child_pages = new WP_Query( array( 'post_type' => 'page', 'posts_per_page' => 4, 'post_parent' => $pageID, 'no_found_rows' => true ) ); while ( $child_pages->have_posts() ) : $child_pages->the_post(); the_title(); the_content(); // Also tried the other variations echo '<br>'; get_the_post_thumbnail(); endwhile; wp_reset_postdata(); ?>I just tested with a fresh install of wordpress, no plugins, twenty sixteen theme, code placed in “content-page.php” and still no other content showing from the other pages. The other pages have content in the WYSIWYG editor :/
I also tried post content and nothing outputs.
Hi Michael,
I just enabled Twenty Sixteen, added the code (with the other variations for the_content) and still it only display the page title and attachments affiliated with each page.
I placed this code in:
“Twenty Sixteen: content-page.php (template-parts/content-page.php)”
Hi Michael,
I’m using a custom theme with no plugins installed.
I will enable twenty sixteen and give it a shot.
I notice, this works just fine when it’s not within a page template, once it’s in a page template included within a actual page, it doesn’t display the content :/
get_the_content() doesn’t work. I’m not sure what the deal is. I’m going to move on and come back to this at a later date.
Thanks, I’ll give that a shot and see what happens.
Yes, the child pages have content.
Would it be because I’m using this within an actual page template for a page that already exists?
I’m able to get the titles and post thumbnails no problems. It’s been mind boggling as to why I’m unable to get the content to display.