BaalOrun
Forum Replies Created
-
Hi,
I have exact the same Problem.
A minute ago I adjusted some mobile slides and after that the slider loads for 15 seconds.
When deactivating the plugin, the whole page takes less than 2 seconds.
I am using Version Version 1.1.9Forum: Plugins
In reply to: Show only parent pages by author in "Create New Page"Didnt find a working solution sry. At the End i have had to make every single one a different blog. But it should be possible if you edit the backend properly because the atributes shown on the right are only a wp-list pages which should be editable.
Forum: Plugins
In reply to: Show only parent pages by author in "Create New Page"I really need to solve this because like that nobody can choose the correct parent page and its not posiible to change their names to unique ones.
I know its a really special kind of problem ??
Forum: Fixing WordPress
In reply to: query post for childpagesThanks for the Help NOT
I found out myself so for everyone who wants to do the same here is the code
<?php $gen1_ids = 128; $gen4_ids = 144; $gen2 = $wpdb->get_col("SELECT ID FROM $wpdb->posts WHERE $wpdb->posts.post_parent IN ($gen1_ids,$gen4_ids) AND $wpdb->posts.post_type = 'page' AND $wpdb->posts.post_status = 'publish' ORDER BY $wpdb->posts.ID ASC"); $gen2_ids = implode($gen2,', '); $gen3 = $wpdb->get_col("SELECT ID FROM $wpdb->posts WHERE $wpdb->posts.post_parent IN ($gen2_ids) AND $wpdb->posts.post_type = 'page' AND $wpdb->posts.post_status = 'publish' ORDER BY $wpdb->posts.ID ASC"); $gen3_ids = implode($gen3,', '); $args=array( 'post__in' => $gen3, 'post_type' => 'page', 'post_status' => 'publish', 'posts_per_page' => 1, 'orderby' => 'modified', 'order' => 'DESC' ); $my_query = null; $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?> <div class="green3"> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><h1><?php the_title(); ?></h1></a> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php echo get_the_post_thumbnail($page->ID, 'thumbnail'); ?></a> <?php the_advanced_excerpt('length=10&use_words=1&allowed_tags=_all'); ?> <div style="padding-top:15px;"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">weiterlesen...</a></div> </div> <?php endwhile; } wp_reset_query(); // Restore global post data stomped by the_post(). ?>
It shows an excerpt with an image of the latest grandchildren of the two categories 128,144 you can add more categories or add more posts to the output by adding another var to the code.
Maybe its useful for somebody
Greetings Baal Orun
Forum: Fixing WordPress
In reply to: query post for childpagesi found another code and changed it a bit now it displays the latest post but the excerptimage isnt showed right…
<?php $gen1_ids = 128; $gen2 = $wpdb->get_col("SELECT ID FROM $wpdb->posts WHERE $wpdb->posts.post_parent IN ($gen1_ids) AND $wpdb->posts.post_type = 'page' AND $wpdb->posts.post_status = 'publish' ORDER BY $wpdb->posts.ID ASC"); $gen2_ids = implode($gen2,', '); $gen3 = $wpdb->get_col("SELECT ID FROM $wpdb->posts WHERE $wpdb->posts.post_parent IN ($gen2_ids) AND $wpdb->posts.post_type = 'page' AND $wpdb->posts.post_status = 'publish' ORDER BY $wpdb->posts.ID ASC"); $gen3_ids = implode($gen3,', '); $args=array( 'post__in' => $gen3, 'post_type' => 'page', 'post_status' => 'publish', 'posts_per_page' => 1, 'orderby' => 'modified', 'order' => 'DESC' ); $my_query = null; $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?> <div class="green2"> <h1><?php the_title(); ?></h1> <?php the_excerpt(); ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">weiterlesen...</a> </div> <?php endwhile; } wp_reset_query(); // Restore global post data stomped by the_post(). ?>
Forum: Fixing WordPress
In reply to: query post for childpagesIs this possible with any kind of code? please help me ??