Dan
Forum Replies Created
-
Mainly records from a brute force plugin
Forum: Plugins
In reply to: [Advanced Custom Fields (ACF?)] Advanced Custom Fields “____” already existsFixed it
You need to delete the existing field group and then ALSO delete it from Trash within the ACF plugin.
I don’t really agree with the UX though – it would be much better if it replaced the existing field groups, or at least moved a copy to trash when it did so.
Forum: Plugins
In reply to: [Adminimize] Menu item Page hidden even though not selectedAh thank you very much. How stupid of me, that makes total sense.
Forum: Reviews
In reply to: [Limit Login Attempts] Stopped workingHi, thanks for your reply.
It has been working but it wasn’t for a while, it’s not particularly reliable.
Forum: Fixing WordPress
In reply to: Messed up the global post with query_postSorry yes I should have said, it’s part of a template.
I do see the H1 yeah and the rest of the page, just not the Posts. And yes the Page Slug is ‘press-releases’ with the ‘s’, but the category name is ‘press-release’.
The full code is below:
<?php /** * Template Name: About Us */ get_header( 'about' ); ?> <!-- <div id="primary" class="content-area"> --> <main id="main" class="site-main" role="main"> <div class="row"> <!-- <img src="https://placehold.it/2000x500" alt="" title="Photos of employees in front of building" class="img-responsive"> --> <div class="container"> <aside class="col-xs-12 col-md-3"> <div class="row"> <nav id="site-navigation" class="about-nav" role="navigation"> <button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Primary Menu', 'deltenna' ); ?></button> <?php wp_nav_menu( array( 'theme_location' => 'about', 'menu_id' => 'about-us' ) ); ?> </nav> </div> </aside> <?php if ( ! is_page( array('press-releases','media-coverage') ) ) { ?> <div class="col-xs-12 col-md-9"> <?php while ( have_posts() ) : the_post(); get_template_part( 'template-parts/content', 'page' ); endwhile; ?> </div> <?php } ?> <?php if ( is_page( 'press-releases' )) { ?> <div class="col-xs-12 col-md-9"> <h1>Press Releases</h1> <?php $query1 = new WP_Query( array( 'category_name' => 'press-release' ) ); while ( $query1->have_posts() ) { $query1->the_post(); echo '<li>' . get_the_title() . '</li>'; } wp_reset_postdata(); ?> </div> <?php } ?> <?php if ( is_page( 'media-coverage' )) { ?> <div class="col-xs-12 col-md-9"> <h1>Media Coverage</h1> <!-- another query will need to be here for Media Coverage articles --> </div> <?php } ?> </div> </div> <!-- .row --> </main><!-- #main --> <!-- </div>#primary --> <?php // get_sidebar(); ?> <?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: Messed up the global post with query_postThat’s only for the other pages, it’s the Press Release and Media Coverage pages that I can’t get to work.
I tried it anyway but it didn’t make a difference.
Forum: Fixing WordPress
In reply to: Messed up the global post with query_postSorry that was a typo, it still doesn’t work when I change it to $query1.