krischomat
Forum Replies Created
-
I found the solution. I have to choose the original size of the image in the widget.
Hey! Yes i.e. here https://askit-app.de/features/ the first picture should already be a gif.
Forum: Fixing WordPress
In reply to: WordPress API get posts with all categoriesThis is a game changer! Thanks for figuring it out!!
Forum: Fixing WordPress
In reply to: WordPress API get posts with all categoriesHey Hey! I am making good progress but now have an issue that is the other way around ??
with this query:
https://localhost:3000/digibau/wp-json/wp/v2/best-practices/?unterstuetzung_kooperation=74,72I am getting posts from type best-practices in the taxonomy “unterstützung_kooperation” with the ids 74 and 72
with this:
https://localhost:3000/digibau/wp-json/wp/v2/best-practices/?raumplanung=65a best practice in the taxonomy raumplanung with the id 65
but with this:
https://localhost:3000/digibau/wp-json/wp/v2/best-practices/?unterstuetzung_kooperation=74,72&raumplanung=65I get nothing… I actually want to get three entries. Any hints?
Forum: Fixing WordPress
In reply to: WordPress API get posts with all categorieshmm in my case it does not seem to be the issue with my custom post types and custom taxonomies.
I just created 3 regular posts, one in category A one in B and one in A and BAnd this query
https://localhost:3000/project/wp-json/wp/v2/posts?categories=18,19gives me the post that is in the category 18 and 19 and also the one that is just in 18 and just in 19. Where as just query for category 18 would also give me the one that is in 18 and 19.
where my goal would be that this query will give me just the post that is in 18 and 19
- This reply was modified 2 years, 1 month ago by krischomat.
- This reply was modified 2 years, 1 month ago by krischomat.
- This reply was modified 2 years, 1 month ago by krischomat.
Forum: Fixing WordPress
In reply to: WordPress API get posts with all categoriesI have the Version 6.0.3. So what I do is that I registered two post types and atm. a taxonomy which is actualy not category but has a different name. The only plugin I am using is Advanced Custom Fields for my post types. Maybe thats something I need to put as an arg in my taxanomy that I want to query? atm it looks like this:
<?php /** Taxonomy Schulform */ function register_taxonomy_schulform() { $labels = array( 'name' => _x( 'Schulformen', 'taxonomy general name' ), 'singular_name' => _x( 'Schulform', 'taxonomy singular name' ), 'search_items' => __( 'Suche Schulform' ), 'all_items' => __( 'Alle Schulformen' ), 'parent_item' => __( 'Parent Schulform' ), 'parent_item_colon' => __( 'Parent Schulform:' ), 'edit_item' => __( 'Edit Course' ), 'update_item' => __( 'Update Schulform' ), 'add_new_item' => __( 'Neue Schulform' ), 'new_item_name' => __( 'Neuer Schulform Name' ), 'menu_name' => __( 'Schulform' ), ); $args = array( 'hierarchical' => true, // make it hierarchical (like categories) 'labels' => $labels, 'show_ui' => true, 'show_admin_column' => true, 'query_var' => true, 'show_in_rest' => true, 'rewrite' => [ 'slug' => 'schulform' ], ); register_taxonomy( 'schulform', [ 'best-practices','konzepte' ], $args ); } add_action( 'init', 'register_taxonomy_schulform' );
Forum: Fixing WordPress
In reply to: WordPress API get posts with all categorieshm that seems to make no difference… I still get all posts