wyclef
Forum Replies Created
-
How can I implement their exclude js file stuff? It looks like they suggest not caching specific js files.
Forum: Plugins
In reply to: [Contact Form 7] How to troubleshoot not receiving messageHow can I send you the website URL privately?
Forum: Plugins
In reply to: [Contact Form 7] How to troubleshoot not receiving messageShould the To and From email not be the same?
Forum: Plugins
In reply to: [WP Cerber Security, Anti-spam & Malware Scan] WP Cerber cerber-load.php?Great, I will update the setting and check the error logs today. I also noticed that if you go to /wp-admin it just redirects to /custom-login-page is this normal behavior? Or is this because my IP is whitelisted?
- This reply was modified 1 year, 11 months ago by wyclef.
Forum: Developing with WordPress
In reply to: Function only for admin area?Yes, seems to work. Thanks!
I am not seeing that that resolved the problem. Any other thoughts on how to troubleshoot?
Forum: Plugins
In reply to: [White Label CMS] Login Custom Background not showingI forgot to mention that the Google ReCaptcha is implemented via the WP Cerber plugin. Guess I will check there as well.
- This reply was modified 2 years ago by wyclef.
Forum: Developing with WordPress
In reply to: Function only for admin area?// Hide ACF Content Box function hide_post_box() { global $post; if ( 34 == $post->ID ) { echo '<style> .acf-field-51df1eda4b2ac { display:none; } </style>'; } elseif ( 31 == $post->ID ) { echo '<style> .acf-field-51df1eda4b2ac { display:none; } </style>'; } } add_action('admin_head', 'hide_post_box');
Sorry, it looks like some code was stripped out when I pasted before. Where am I missing a bracket?
Yea, there is a post there.
If I go to domain.org/newsletter/news/2019/04/ I see all the month listings but if I go to domain.org/newsletter/news/2019/ it just resolves back to domain.org/newsletter/news/
- This reply was modified 2 years, 2 months ago by wyclef.
I did a print_r on urlSplits and it returned
Array ( [0] => [1] => news-and-events [2] => news [3] => )
Which appears like what I want but am wondering why it isn’t working still, if I manually go to the URLs and add year + month number the pages resolve with the data showing up but with just the year nothing, yet it worked fine in 5.4.
I have come across this issue which seems related, but I am not using ‘page’ so am not seeing how I would resolve this.
I installed a few different versions of WordPress and this was working as far back as 5.4, but not in 5.5 or 5.6 if that means anything.
- This reply was modified 2 years, 2 months ago by wyclef.
Hey Alan, good find and should be updated…
while(the_repeater_field('external-links')):
to
while ( have_rows('external-links') ) : the_row();
but doesn’t seem to resolve this issue. I found the same problem with another block that doesn’t appear to utilize ACF and is just straight WordPress posts which might help simplify the issue more if ACF is out of the equation. Do you see anything with the following that might cause that last domain.org URL not to resolve to the respective posts? I am very confused here.
<div> <h3>News</h3> <ul> <?php $urlSplits = explode('/', $_SERVER['REQUEST_URI']); ?> <?php if ($urlSplits[3] != '') { $currentYear = $urlSplits[3]; } else { $currentYear = date('Y'); } ?> <?php query_posts('posts_per_page=50&cat=5&order=DESC&orderby=date&year='.$currentYear);?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <li> <em><?php the_time('F j, Y') ?></em> <strong><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></strong> </li> <?php endwhile; ?> <?php else : ?> <p>Not Found</p> <p><?php _e("Sorry, but you are looking for something that isn't here."); ?></p> <?php endif; ?> </ul> <?php foreach (range(date('Y'),'2012') as $year) { echo ' <a </a> '; }?> </div>
Very interesting. I will look into this and report back. Sounds promising!
Forum: Fixing WordPress
In reply to: Upgrading from WP 5.4 > WP 5.5Ah, this seems helpful. How do you triple nest quotes? Escape the quote as follows? Not sure I have ever needed to triple nest marks before.
jQuery(".navigation a[href*=\"#\""+rnrSection+"]").parent().addClass("active");