csloisel
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Categories Missing from Posts Admin MenuAs far as I know there is no way to do this in the admin panel, but you can do this easily with code. So it’s possible that your theme or a plugin has removed the post category connection.
Forum: Fixing WordPress
In reply to: After 4.7.3 update display error of single pixel imageThe images appear to be served by a wp.com cdn, are you using Jetpack Photon or something? This might be something you need to take up with them.
Forum: Developing with WordPress
In reply to: Group CPT posts by Custom FieldThe code I gave isn’t a drop in or replacement for your loop, it’s just to give you an idea of what the logic would look like. You will have to adapt it for your specific use case, for example I don’t know what containers you are using for your grid.
Forum: Developing with WordPress
In reply to: Where create_category action declared?That action you are looking for is in this function: https://developer.ww.wp.xz.cn/reference/functions/wp_insert_term/
And it actually looks like this:
do_action( "create_{$taxonomy}", $term_id, $tt_id );Forum: Developing with WordPress
In reply to: Group CPT posts by Custom FieldI would normally do something like this:
<?php global $wp_query; // Declare use of global query for reference $prev_date = false; // Store previous date outside of loop for reference if ( have_posts() ) : while ( have_posts() ) : the_post(); // Get the date value $date = get_field( 'event_date' ); // Check if we are in a new month if ( $date !== $prev_date ) : // If not the first post in loop if ( $wp_query->current_post !== 0 ) : // Close previous month grid container ?> </div> <?php endif; ?> <?php // Print date header ?> <h5><?php echo $date; ?></h5> <?php // Start a new month grid container ?> <div class="month-grid-container"> <?php endif; ?> <?php /** * Do post output here */ ?> <?php // Check if the last post in loop to close container if ( $wp_query->current_post + 1 === $wp_query->post_count ) : ?> </div> <?php endif; ?> <?php // Store date for reference $prev_date = $date; ?> <?php endwhile; endif;Forum: Developing with WordPress
In reply to: Group CPT posts by Custom FieldWell it seems like you have the query figured out, so is the problem that you want to avoid duplication of the date field on the page?
Forum: Fixing WordPress
In reply to: Attaching a new ebook (pdf file)Unfortunately we aren’t able to assist with custom or commercial themes. If it’s any help, that url is not a standard WP url as far as I can tell and indicates to me that the files were placed directly onto the filesystem via FTP.
Forum: Fixing WordPress
In reply to: Logo OptionsAre you editing the template or a setting in the admin?
Forum: Fixing WordPress
In reply to: Editing “header.php” to swap logoThis code indicates there there is already a setting in your theme to switch the logo. I would contact your theme developers / support or maybe find documentation that might point you to where the setting is.
Forum: Fixing WordPress
In reply to: Website AccessI mean on that page did you try any of these options listed there:
- Through phpMyAdmin
- Through FTP
- Through WP CLI
- Using the Emergency Password Reset Script
- This reply was modified 9 years, 2 months ago by csloisel.
Forum: Fixing WordPress
In reply to: Website AccessYou’ve tried the database and FTP options?
Forum: Fixing WordPress
In reply to: Website AccessThere are some options and steps outlined for resetting passwords here: https://codex.ww.wp.xz.cn/Resetting_Your_Password
Forum: Developing with WordPress
In reply to: Get rid of cart link?Try:
#footer li.wpmenucartli { display: none !important; }- This reply was modified 9 years, 2 months ago by csloisel.
Forum: Developing with WordPress
In reply to: Get rid of cart link?That css isn’t going to work if you aren’t using Woo commerce, but unless you link the page so I can inspect the element I can’t give you the correct CSS. What I mean by the same menu is that it appears to be the same menu in the left footer as in the header.
Forum: Developing with WordPress
In reply to: Use $variable to fill in wp_query post_typeTry
<?php echo esc_url( $work_link ); ?>