Niklas
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Custom taxonomy returning 404 error@tribulant Software
Thanks for your suggestion! I tried that, then I went to the Permalinks and re-saved, but it still does not work.
Forum: Fixing WordPress
In reply to: How to prevent Denial of Service attacks against xmlrpc.php?I can’t seem to get it working, I have installed it but it keeps creating loads of htaccess files that look like this:
.htaccess.1410368566
.htaccess.1410368547
…And then throws me into a loop with Enough chit-chat -> Apply Changes -> Test firewall, but nothing ever gets tested.
Forum: Themes and Templates
In reply to: Custom taxonomy returning 404 errorI found this article on Smashing Magazine which has a very interesting section: Creating A Custom Landing Page For Taxonomy Archives (scroll down a bit). It looks just like what I might need, but I can’t get it working either:
add_filter( 'taxonomy_archive ', 'slug_tax_page_one' ); function slug_tax_page_one( $template ) { if ( is_tax( 'ratt' ) ) { // 'ratt' is lowercase taxonomy name in register_taxonomy() global $wp_query; $page = $wp_query->query_vars['paged']; if ( $page = 0 ) { $template = get_stylesheet_directory(). '/taxonomy-food.php'; } } return $template; }
Forum: Themes and Templates
In reply to: Custom taxonomy returning 404 errorThanks, but resetting didn’t work either, still loads the 404.php template file.
Worth noting is that the following URL:s do work
example.com/food/taxonomy-term
where taxonomy-term is the slug any term in the taxonomy.Forum: Themes and Templates
In reply to: Custom taxonomy returning 404 errorTried it on your recommendation but neither
example.com/?taxonomy=food
norexample.com/food
works. ??Forum: Fixing WordPress
In reply to: How to prevent Denial of Service attacks against xmlrpc.php?Thank you, I will give Ninja firewall a try.
Forum: Fixing WordPress
In reply to: Help with websiteIn the unite folder you should have a file called “sidebar.php”, open it and you will find code that looks like this:
<?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?> <aside id="search" class="widget widget_search"> <?php get_search_form(); ?> </aside> <aside id="archives" class="widget"> <h1 class="widget-title"><?php _e( 'Archives', 'unite' ); ?></h1> <ul> <?php wp_get_archives( array( 'type' => 'monthly' ) ); ?> </ul> </aside> <aside id="meta" class="widget"> <h1 class="widget-title"><?php _e( 'Meta', 'unite' ); ?></h1> <ul> <?php wp_register(); ?> <li><?php wp_loginout(); ?></li> <?php wp_meta(); ?> </ul> </aside> <?php endif; // end sidebar widget area ?>
As you can see there are three <aside> elements, one search, one archive, and one meta. These three are only visible if you have added no widgets in the sidebar. In other words, it is the default content. Change it to something like this if you want it empty:
<?php if ( ! dynamic_sidebar( 'sidebar-1' ) ) : ?> <!-- everything inside the if clause has been removed --> <?php endif; // end sidebar widget area ?>
Forum: Plugins
In reply to: [Slideshow Gallery LITE] Multiple slideshows on homepage not showingI can reproduce the inability to use two or more slideshows simultaneously.
Forum: Plugins
In reply to: [mqTranslate] Migrate from WPMLDoes it work for attachments and post_meta fields as well?
Forum: Plugins
In reply to: [mqTranslate] Migrate from WPMLDo you have a specification for how you store data in mqTranslate?
I will be happy to share my migration script when I am done.
Forum: Plugins
In reply to: [JQuery Mega Menu Widget] what is these erorrs?The plugin doesn’t adhere to strict PHP standards, you can fix this issue by changing rows 45-47 in that file from:
function get_plugin_directory(){ return plugins_url() . '/jquery-mega-menu'; }
to:
public static function get_plugin_directory(){ return plugins_url() . '/jquery-mega-menu'; }
Forum: Plugins
In reply to: [Breadcrumb NavXT] Notice: Undefined index: pretext…Quick solution:
//We'll want to switch between the two breadcrumb output types if($instance['type'] == 'list') { //Display the list output breadcrumb if (isset($instance['pretext'])) { echo $instance['pretext']; } echo '<ol class="breadcrumb_trail breadcrumbs">'; bcn_display_list(false, $instance['linked'], $instance['reverse']); echo '</ol>'; }
Forum: Plugins
In reply to: [User Access Manager] [Plugin: User Access Manager] How to use APIAgreed, some small documentation would be awesome!
I was on to something similar just now, if I disable everything except the WP tag cloud widget and then modify the core widget’s widget() function to reset there. I noticed that the “dominant” bread crumb was always tagged with the first tag in the tag cloud.
echo $after_widget;
wp_reset_postdata();…seems to solve it, but I am not comfortable modifying WP core because it will break in updates.
Nothing deviates, it hasn’t been touched.