Peter G.
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Post Type UI] 404 page on view all page for custom post typeA colleague of mine figured it out. It was pretty simple. The Devotionals were set as hierarchial = true and he just changed it to false. All seems to be well now.
Forum: Plugins
In reply to: [Custom Post Type UI] 404 page on view all page for custom post typeMichael, is there something else you suggest I try in order to fix this? It’s a problem for my client.
Forum: Plugins
In reply to: [Custom Post Type UI] 404 page on view all page for custom post typeIt’s the standard front-end 404 page for my WP theme. If it would help, I could give you a temporary admin account to look around.
Forum: Plugins
In reply to: [Custom Post Type UI] 404 page on view all page for custom post typeInteresting. No, I get the standard 404 page for the website. And yes, there are 100s of daily devotionals live on the site (see here: https://www.woh.org/devotionals/).
Forum: Plugins
In reply to: [Custom Post Type UI] 404 page on view all page for custom post typeMichael, thanks for following up. I really appreciate that. The problem hasn’t been solved. But I’ve just set up the debugging info. Let me know what you find.
Forum: Plugins
In reply to: [Custom Post Type UI] 404 page on view all page for custom post typeSee the screenshot.
Forum: Fixing WordPress
In reply to: Strip tagsSolved.
Forum: Fixing WordPress
In reply to: Strip tagsNevermind. I found what I’m looking for in the
the_title_attribute()
referenced here.Forum: Fixing WordPress
In reply to: Blog snippetsWill this need to be inside the loop?
Forum: Fixing WordPress
In reply to: Order subpages by dateThat did the trick! Thank you, vjpo!
Forum: Fixing WordPress
In reply to: Order subpages by dateOkay, here’s what the subpages.php files looks like:
<?php $subpages = new WP_Query('post_type=page&post_parent='.$post->ID.'&orderby=menu_order&order=ASC&showposts=-1'); ?> <?php if($subpages->have_posts()) : ?> <div id="subpages" class="con clearfix"> <?php $subpages_title = get_post_meta($post->ID, 'subpages', true) ? get_post_meta($post->ID, 'subpages', true) : __('subpages', TS_DOMAIN); ?> <!-- <h3 class="h3-divider"><?php // echo $subpages_title; ?></h3> --> <?php $i=0; while ($subpages->have_posts()) : $subpages->the_post(); ?> <?php if($i%2==0) add_filter('post_class','ts_post_class_alt'); ?> <div class="subpage<?php if($i%2==0) echo ' post-alt'; ?>"> <?php if((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) : ?> <div class="post-img"> <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"> <?php the_post_thumbnail('dli-medium', array('alt' => ''.get_the_title().'', 'title' => ''.get_the_title().'')); ?> </a> </div> <?php endif; // endif post thumbnail ?> <h3><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"> <?php the_title(); ?> </a></h3> <?php the_excerpt(); ?> </div> <!-- end post --> <?php $i++; endwhile; ?> </div> <!-- end subpages --> <?php wp_reset_query(); endif; // endif subpages ?>
I tried changing
order=ASC
toorder=DESC
but it did nothing.Any ideas?