Tran Dinh Khanh
Forum Replies Created
-
To show custom taxonomy, I just hacked some code.
In wpuf-add-post.php, line 112, I modified like this (and it worked well).$taxonomy =''; if($post_type=="place"){ $taxonomy ="places"; } else $taxonomy = "category"; if ( $cat_type == 'normal' ) { wp_dropdown_categories( 'show_option_none=' . __( '-- Select --', 'wpuf' ) . '&hierarchical=1&hide_empty=0&orderby=name&name=category[]&id=cat&show_count=0&title_li=&use_desc_for_title=1&class=cat requiredField&exclude=' . $exclude.'&taxonomy='.$taxonomy ); } else if ( $cat_type == 'ajax' ) { wp_dropdown_categories( 'show_option_none=' . __( '-- Select --', 'wpuf' ) . '&hierarchical=1&hide_empty=0&orderby=name&name=category[]&id=cat-ajax&show_count=0&title_li=&use_desc_for_title=1&class=cat requiredField&depth=1&exclude=' . $exclude.'&taxonomy='.$taxonomy );with
placeis custom post_type,placesis custom taxonomy.If you use
wpuf_category_checklistfunction, just addwpuf_category_checklist($tax = $taxonomy);Thanks.
Forum: Themes and Templates
In reply to: Show posts which get by custom page in excerptSorry for late response.
I just tried query_post, no varied things was shown 🙂Forum: Themes and Templates
In reply to: Show posts which get by custom page in excerptIt seems there’s no parameters as I think 🙂
http://codex.wordpress.org/Class_Reference/WP_Query#ParametersForum: Themes and Templates
In reply to: Show posts which get by custom page in excerptI followed your instruction, but
the_content('..');still shows fullpost.
I think when retrieve new query, it returns not same wordpress original, so I also think there are some parameter that allow keep the original. But I don’t know clearly 🙂Forum: Themes and Templates
In reply to: Show posts which get by custom page in excerptOh god, your new code works fine even if there’s no
<!--more-->tag on post.
Thank you so much 🙂Forum: Themes and Templates
In reply to: Show posts which get by custom page in excerptOpps, there’s other problem,
with short post (so I don’t use <!–more–> tag), the result is exactly samethe_excerpt();
How can resolve this problem?
I think should use aif, but I don’t really know 🙁
I also want to know whythe_content();on custom page not shows same hompage.Forum: Themes and Templates
In reply to: Show posts which get by custom page in excerptWow, now, it works fine!!
Thank you so much, Mr. Oleg Dudkin!
Have a nice day!Forum: Themes and Templates
In reply to: Show posts which get by custom page in excerptForum: Themes and Templates
In reply to: Show posts which get by custom page in excerptHello there again,
All of above codes show the same result: full post 🙁Forum: Themes and Templates
In reply to: Show posts which get by custom page in excerptMy code was pasted here, please 🙂
http://pastebin.com/XNbAw59J
Ok, I’ll try!Forum: Themes and Templates
In reply to: Show posts which get by custom page in excerptMy custom code was pasted here http://pastebin.com/XNbAw59J
ThanksForum: Themes and Templates
In reply to: Show posts which get by custom page in excerptI think I need add some parameters to wp_query to get post like homepage, but I don’t know what parameters 🙁
Forum: Themes and Templates
In reply to: Show posts which get by custom page in excerptForum: Themes and Templates
In reply to: Show posts which get by custom page in excerptYes, I use more tag /*<!–more–>*/ while publishing post,
so, on homepage has /…/ at end with more link.But on my custom page, it shows full post 🙁
Forum: Themes and Templates
In reply to: Show posts which get by custom page in excerptI know, but I want to keep styled post (break lines, bold text…)