wyclef
Forum Replies Created
-
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 1 year, 8 months 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 1 year, 10 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 1 year, 10 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");
Forum: Fixing WordPress
In reply to: Core Error in Server Error Log?Thanks, I will try this.
Forum: Fixing WordPress
In reply to: Core Error in Server Error Log?Thanks. Sorry for the delayed response.
I am also seeing the following error, related to the following code in functions.
mod_fcgid: stderr: PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘extended_editor_mce_buttons_2’ not found or invalid function name in /home/user/domain.net/wp-includes/class-wp-hook.php on line 289, referer: https://www.domain.net/about/
// Disable All TinyMCE Buttons if (isset($wp_version)) { add_filter('mce_buttons', 'extended_editor_mce_buttons', 0); add_filter('mce_buttons_2', 'extended_editor_mce_buttons_2', 0); } // TinyMCE: First line toolbar customizations if( !function_exists('base_extended_editor_mce_buttons') ){ function base_extended_editor_mce_buttons($buttons) { return array( 'formatselect', 'template', 'bold', 'italic', 'link', 'wp_adv' ); } add_filter("mce_buttons", "base_extended_editor_mce_buttons", 0); } // TinyMCE: Second line toolbar customizations if( !function_exists('base_extended_editor_mce_buttons_2') ){ function base_extended_editor_mce_buttons_2($buttons) { return array( 'pastetext', 'charmap', 'undo', 'redo', 'code' ); } add_filter("mce_buttons_2", "base_extended_editor_mce_buttons_2", 0); }
This is running on WP 5.4.9, PHP 7.4. Are these connected or two separate errors?
Also interested in this. Any updates on this?
Forum: Developing with WordPress
In reply to: ?add line breaks to esc_html__?I see. How would you go about modifying that $title to allow for line breaks, or a p tag or something.
Forum: Fixing WordPress
In reply to: Do I need tablespaces for routine WordPress database dumps?I was getting the following error but it didn’t seem to be impacted the DB as far as I could tell either.
Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces
So should I go with it is not a problem to not include tablespaces in a routine DB dump?
- This reply was modified 2 years, 12 months ago by wyclef.
Forum: Plugins
In reply to: [IP Location Block] Local database settings failed to copyHow can I verify that for you? This is on a shared hosting plan at DreamHost.