dbued
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: New WordPress Hack? (.X1-unix)did you find any news?
“Use at my own risk” is no solution for me when it comes to paying customers for my websites. But thanks for the advice! I will wait until an update solves this problem, hopefully soon… ??
Increasing and reducing doesn’t help. It’s still there. The Plugin worked so well for month, why it is now doing a such annoying problem?
Guys, please fix this. I’m having this issue on every instance (15 Websites!!!!!) too. This is really annoying, nothing helps here, even increasing the request timeout.
Guys, please fix this. I’m having this issue on every instance (15 Websites!!!!!) too. This is really annoying, nothing helps here, even increasing the request timeout.
Forum: Fixing WordPress
In reply to: Numbers in permalinks instead of post name?permalink structure like this: https://site.com/%postname%/
Forum: Fixing WordPress
In reply to: Custom Post Types disappearing after upgrade to 4.3I managed to solve this problem with a workaround. I’m using WP_Query without specific ID’s and with category slugs. Works well!
<?php // WP_Query arguments $args = array ( 'post_type' => array( 'customposttype1', 'customposttype2', 'customposttype3' ), 'showposts' => 1, 'tax_query' => array( 'relation' => 'AND', array( 'taxonomy' => 'category', 'field' => 'slug', 'terms' => array('customposttypecat1', 'customposttypecat2', 'customposttypecat3'), 'operator' => 'IN' ) ) ); // The Query $query = new WP_Query( $args ); if ( $query->have_posts()) : while ( $query->have_posts() ) : $query->the_post(); ?> ..... title, content, etc ..... <?php endwhile; endif; wp_reset_query(); ?>
Forum: Fixing WordPress
In reply to: WP_Query problems with custom post typeHere you have an example of the register of a CPT:
add_action('init', 'cptui_register_my_cpt_wuelfrath'); function cptui_register_my_cpt_wuelfrath() { register_post_type('wuelfrath', array( 'label' => 'Wülfrath', 'description' => '', 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'capability_type' => 'post', 'map_meta_cap' => true, 'hierarchical' => false, 'rewrite' => array('slug' => 'wuelfrath', 'with_front' => 1), 'query_var' => true, 'menu_position' => '5', 'supports' => array('title','editor','excerpt','trackbacks','custom-fields','comments','revisions','thumbnail','author','page-attributes','post-formats'), 'yarpp_support' => true, 'taxonomies' => array('category','post_tag'), 'labels' => array ( 'name' => 'Wuelfrath', 'singular_name' => 'Wuelfrath', 'menu_name' => 'Wülfrath', 'add_new' => 'Neuer Artikel', 'add_new_item' => 'Neuen Artikel hinzufügen', 'edit' => 'Bearbeiten', 'edit_item' => 'Artikel bearbeiten', 'new_item' => 'Neuer Artikel', 'view' => 'Ansehen', 'view_item' => 'Artikel ansehen', 'search_items' => 'Artikel suchen', 'not_found' => 'Keinen Artikel gefunden', 'not_found_in_trash' => 'No Wuelfrath Found in Trash', 'parent' => 'Parent Wuelfrath', ) ) ); }
Forum: Fixing WordPress
In reply to: WP_Query problems with custom post typeWe are a newssite and we’re reporting about 4 different cities in our region. each city has different categories, like main news, short news, sport news…to be more specific with the categories each city has it’s own category connected with the town name.
For example:
CPT Wülfrath = Categories: “Main news Wülfrath” / “Short news Wülfrath” / “Sport news Wülfrath”
CPT Mettmann = Categories: “Main news Mettmann” / “Short news Mettmann” / “Sport news Mettmann”
and so forth…
What I’m trying to do is to get the latest postings of ALL 4 cities (so 4 different CPT) of a specific category like main news. So my thought was, to Query postings of all CPT and search for the 5 recent postings with the category “Short news Wülfrath” and “Short news Mettmann” and so forth…in the end I want to receive the recent postings of 4 CPT and 4 different categories.
If you want to have a look: https://www.taeglich.me – it is in German, but I think you can see what I’m trying to achieve. Right now I’m working with global $wp_query and query posts…
Forum: Fixing WordPress
In reply to: Custom Post Types disappearing after upgrade to 4.3Hey dude, thanks for your answer. WP_Query was not the result, but I’ve found the problem thanks to your advice. While i was searching for the category parameters for WP_Query() I’ve found the following thing in the backend:
Before Update:
wp-admin/edit-tags.php?action=edit&taxonomy=category&tag_ID=10&post_type=mycity
After Update:
wp-admin/edit-tags.php?action=edit&taxonomy=category&tag_ID=3687&post_type=mycity
So can anyone tell me why the heck wordpress changes the ID of my category while updating the DB for the new wordpress version? For what reason?????