DsNL
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Order Export For WooCommerce] Can’t find exported fileI get a 500 error when i use “Export w/o progress”. I’ve checked the logs again and i saw a warning from the wp_options table. I’ve repaired that table and now it seems to works fine.
Thanks for your quick reply.
Forum: Plugins
In reply to: [Polylang] Translate custom-post-type slugAnyone? Or maybe just like an htaccess workaround?
Forum: Themes and Templates
In reply to: the_content inside menuSure no problem:
There you go the php part:
<nav id="menu"> <?php $args = array( 'menu' => 'mainmenu', echo' => true, 'fallback_cb' => 'wp_page_menu', 'items_wrap' => '<ul>%3$s</ul>', 'depth' => 0 ); wp_nav_menu( $args );?> <div class="description"> <?php if(have_posts()):while(have_posts()):the_post(); the_content(); endwhile; endif;?> </div> </nav>Jquery part:
$(".description").appendTo("li.current-menu-item");dont forget to put it in the document ready statement.
Forum: Themes and Templates
In reply to: the_content inside menuYes, i’ve nested the standard wordpress loop inside of the jquery. Using appendTo feels a bit like cheating, how do you think about that?
Forum: Themes and Templates
In reply to: the_content inside menuAfter hours of searching and just aksing my question here, i’ve found a solution, but i’m not sure if it’s the corrent way. I render my content using the_content, after that i use appendTo to move the content to my current-menu-item.
Forum: Themes and Templates
In reply to: Show category in custom post typeI've fixed it: $args = array( 'post_type' => 'portfolio', 'portfolio-cats' => 'home', 'numberposts' => 10, 'orderby' => 'ASC', );