wyclef
Forum Replies Created
-
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 3 years, 4 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 href="https://www.domain.org/news-and-events/news/',$year,'">',$year,'</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 tablespacesSo should I go with it is not a problem to not include tablespaces in a routine DB dump?
- This reply was modified 4 years, 5 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.
Forum: Developing with WordPress
In reply to: Get category parent alsoOk, I think thanks to your help I have this working now. Do you think there is a way to clean this up at all or if it works just leave it. Needed an else at the end with your line rather than before the if. Does this need an endif; or is that only if I am using an elseif?
$postCategories = get_the_category($postID); $postHTML .= '<div class="buttons">'; if ($postCategories[0]->parent != 0) { $cat = get_category($postCategories[0]->parent); $postHTML .= '<a href="'.get_category_link($cat->cat_ID).'" class="btn" title="'.$cat->name.'">'.$cat->name.'</a>'; } else { $postHTML .= '<a href="'.get_category_link($postCategories[0]->cat_ID).'" class="btn" title="'.$postCategories[0]->name.'">'.$postCategories[0]->name.'</a>'; } $postHTML .= '</div>'; return $postHTML;- This reply was modified 4 years, 6 months ago by wyclef.
Forum: Developing with WordPress
In reply to: Get category parent alsoJust want to be clear this is what you are thinking. I tried it out and it seems to get the category of the post and not the parent category, which can be the parent category if the post has designated that, but if the post has designated a child category of the parent category it will pull the child category.
function getCatButton($postID) { $postCat = get_the_category($postID); $postHTML = '<div class="button">'; $postHTML = '<a href="'. get_category_link($postCat[0]->cat_ID) . '">'. $postCat[0]->name .'</a>'; if ($postCat[0]->parent != 0) { $cat = get_category($postCat[0]->parent); } $postHTML = '</div>'; return $postHTML; }Forum: Everything else WordPress
In reply to: license.txt and readme.txt in theme filesDo I need to license my themes under the GPL? #Do I need to license my themes under the GPL?
If you have no plans to distribute your theme then you do not need to adopt the GPL license for your work. The GPL only applies to distributed software. If you are not distributing your software – for example, a theme used only by yourself or on your local machine – you do not need to adopt the GPL.
So if I am creating a theme for 1 person, that isn’t really used only by myself, does that mean I need to adopt the GPL? Does that count as distributed?
Thanks! I think both get_the_category and single_cat_title will work for me and simplify things tremendously. The last function may be a bit overkill for my needs at this time but will keep it in mind.