jana26
Forum Replies Created
-
Forum: Plugins
In reply to: [qTranslate Plus] WYSIWYG TabsThis is the error message in the console:
Uncaught TypeError: Cannot set property ‘className’ of null post.php?post=5&action=edit:642switchEditors.go post.php?post=5&action=edit:642ls.onclick
Forum: Plugins
In reply to: [qTranslate Plus] PHP Language SwitchOk. Found it in FAQ.
Forum: Plugins
In reply to: [Alphabetic Pagination] When there is no post for a particular letterPerhaps this could help. Should be good if letters with no posts are not having links.
https://wordpress.stackexchange.com/questions/41660/how-to-build-a-directory-with-indexes-in-wordpress/?codekitCB=404144737.558857Forum: Plugins
In reply to: [RSSImport] Target and start items not workingIt shows me a white page.
Forum: Plugins
In reply to: [RSSImport] Target and start items not working<?php RSSImport( $display = 10, $feedurl = 'https://loeffelstiel.eu/feed/', $start_items = ' ', $end_items = ' ', $start_item = ' ', $end_item = ' ' ); ?>
I use Version 4.4.14.
Forum: Plugins
In reply to: [RSSImport] Target and start items not workingHas anyone an idea why?
I get this message:
Warning: Missing argument 2 for wpdb::prepare(), called in /Applications/XAMPP/xamppfiles/htdocs/test/wp-content/plugins/bp-social-media-profiles-master/bp-soci
al-media-profiles.php on line 515 and defined in /Applications/XAMPP/xamppfiles/htdocs/test/wp-includes/wp-db.php on line 992Forum: Networking WordPress
In reply to: Top Level DomainTo be clear. So mydomain1.com ist my first wordpress site where i installed multisite and now I want mydomain2.com as a second page in this multisite system.
Forum: Networking WordPress
In reply to: Top Level DomainThe top domain is parked on top. I want to add a second site with a top level domain.
Hi, same here.
Forum: Fixing WordPress
In reply to: Custom Query FunctionOk, thank you guys. @esmi: no problem @keesiemeijer: can you combinate time and cats with that plugin? Couldn’t see it in the demo.
Forum: Fixing WordPress
In reply to: Custom Query FunctionThanks for the quick answers. So how can I list custom post types and filter them with ajax on a page template?
Forum: Plugins
In reply to: [WP Currency Converter] IDR Problemgive me your mail so i can send you a modified version another guy coded for my project.
Forum: Plugins
In reply to: Walker MenuI tried to add snippets of this solution.
https://wordpress.stackexchange.com/questions/90346/costum-walker-with-sub-menu-item-count
but the problem is that the submenu div is made in another function.
That’s my Walker:static $x = 0; function start_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat("\t", $depth); $output .= "\n$indent<div id='p7DMMs1_2' class='p7dmm-sub-wrapper'><ul class='sub-menu'>\n"; } function end_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat("\t", $depth); $output .= "$indent</ul></div>\n"; } function start_el ( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { // Most of this code is copied from original Walker_Nav_Menu global $wp_query, $wpdb; $indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; $class_names = $value = ''; $classes = empty( $item->classes ) ? array() : (array) $item->classes; $classes[] = ''; $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args ) ); $class_names = ' class="menu-item"'; $id = apply_filters( 'nav_menu_item_id', 'menu-item-'. $item->ID, $item, $args ); $id = ' id=""'; $has_children = $wpdb->get_var("SELECT COUNT(meta_id) FROM wp_postmeta WHERE meta_key='_menu_item_menu_item_parent' AND meta_value='".$item->ID."'"); $output .= $indent . '<li' . $value . $class_names .'>'; $attributes = ! empty( $item->attr_title ) ? ' title="' . esc_attr( $item->attr_title ) .'"' : ''; $attributes .= ! empty( $item->target ) ? ' target="' . esc_attr( $item->target ) .'"' : ''; $attributes .= ! empty( $item->xfn ) ? ' rel="' . esc_attr( $item->xfn ) .'"' : ''; if ( $depth == 0 ) { $attributes .= ' id="p7DMMt1_'.$x.'"'; } // Check if menu item is in main menu if ( $depth == 0 && $has_children > 0 ) { $item_html = ''; // These lines adds your custom class and attribute $attributes .= ' class="trig"'; $attributes .= ! empty( $item->url ) ? ' href="#"' : ''; } else { $attributes .= ! empty( $item->url ) ? ' href="' . esc_attr( $item->url ) .'"' : ''; } $item_output = $args->before; $item_output .= '<a'. $attributes .'>'; $item_output .= $args->link_before . apply_filters( 'the_title', $item->title, $item->ID ) . $args->link_after; // Add the caret if menu level is 0 if ( $depth == 0 && $has_children > 0 ) { $item_output .= ''; } $item_output .= '</a>'; $item_output .= $args->after; $output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args ); }
Forum: Plugins
In reply to: [Media Library Assistant] Number PaginationOk I did it. you gave me the idea.
foreach ( $bild_data as $bild_d ){ echo "Bild ".$bseite." von ".$BILDER_ANZAHL." <img class=\"alignnone size-medium wp-image-58\" width=\"535\" height=\"356\" src=\"".$bild_d->guid."\" alt=\"ab 2011 Bild 1\"> ".$PFEILBILDRECHTS." ".$PFEILBILDLINKS." <p style=\"text-align: right;\"> ".nl2br($bild_d->post_excerpt)." </p> "; }
Thanks for the fast and pleasant support. ??