pleinx
Forum Replies Created
-
Thank you again for your reply.
But sadly this will not work ??$('#metaslider_4689').flexslider();
VM3707:1 Uncaught TypeError: $(…).flexslider is not a functionI don’t wanna change the status or content. How you initialize a slider? ?? There must be a function-call. This one i need please.
@htmgarcia thanks for your reply.
Not sure, how this should solve my issue. Your code-snippet shows how to react once the carousel is initialized. I need a trigger, to re-initialize a carousel e.g. after ajax.
So the webserver provides new HTML for a carousel from backend. Once the ajax is ready i want to initialize this carousel like:
jQuery('metaslider[id=1234]').init()
@tw2113 you can close this topic, this attribute change has been solve my issue ??
@tw2113 yeah i have triggered to early “marked as resolved”. Sorry.
I have still the issue and want to solve it.EDIT:
I found a solution for this multi-level custom tax in link:function cptui_register_my_taxes() { /** * Taxonomy: Fahrzeugkategorien. */ $labels = array( "name" => __( "Fahrzeugkategorien", "custom-post-type-ui" ), "singular_name" => __( "Fahrzeugkategorie", "custom-post-type-ui" ), ); $args = array( ... "rewrite" => array( 'slug' => 'vehiclecategory', 'with_front' => true, "hierarchical" => true), ... ); register_taxonomy( "vehiclecategory", array( "vehicles" ), $args ); } add_action( 'init', 'cptui_register_my_taxes' );
adding
hierarchical => true
in"rewrite" => array( 'slug' => 'vehiclecategory', 'with_front' => true, "hierarchical" => true)
was the solution.I will test now little bit longer.
- This reply was modified 5 years, 6 months ago by pleinx.
@tw2113 hmm it seems an issue with the URL. I have deleted all my categories, posts and older cpt.
Created “cartests” cpt and “vehiclecategory” as ctax. Just as i set the url pattern to
/%vehiclecategory%/%postname%/
it fails (no single-cartests.php will called). But with/%postname%/
it works.Do you have an idea?
EDIT:
I think its an issue in the permalink structure.If my “vehiclecategory” has 2 levels (or more) it crashs.
e.g.
“/audi/a4/1.8t” => crashs
“/audi/a4-1-8t” => works (here i have the model in the post itself)- This reply was modified 5 years, 6 months ago by pleinx.
@tw2113 you’re right. I have renamed
vehicles
tocartest
and it works. Strange, but i will check this, maybe its conflicted, yeah.Thanks for your fast help.
Forum: Fixing WordPress
In reply to: Custom archive-$posttype.php without pre queried $postsI dont know what is so hard to understand on “i want to save a query” ??
Its so simple. WordPress fire a default query on each archive-$posttype.php. But we dont need the default postings for this posttype here. We use custom queries from other database and performance is still important, so, i want to save this query-execute-time.i found my perfect solution here:
vadimk.com/blog/disable-wordpress-search-query/thats easy and clear with small modifications like your example @keesiemeijer. thanks for it!
function _cancel_query( $query ) { if ( !is_admin() && is_post_type_archive( 'computer' ) ) { $query = false; } return $query; } add_action( 'posts_request', '_cancel_query' );
but thanks for your help! ??
Forum: Fixing WordPress
In reply to: Custom archive-$posttype.php without pre queried $postshehe, but then i have nothing saved (query). I clone only variables!
I want to save the mysql-query which get the posts from database guys so that $posts is undefined or empty. And no i doesnt want to set $posts = null ??Forum: Fixing WordPress
In reply to: Custom archive-$posttype.php without pre queried $postsWhat more can I explain when I say I want to save a request? (No offense!)
I am concerned also also to the possibility. A dream would be if it were realized with hooks.
Forum: Fixing WordPress
In reply to: Custom archive-$posttype.php without pre queried $posts@sterndata
yes. That would be nice!And yes too, i know but the customer want it ?? (file-structure, maybe for easy rewriting URLs)
Forum: Fixing WordPress
In reply to: Custom archive-$posttype.php without pre queried $postsHi Tyler,
thanks for your reply but i know the handling of building custom templates. Thats not the problem.
I want to save the (mySQL-)QUERY not the $posts array with post-objects!
We dont need the default loading posts here. We fire custom queries.