narci 1 ارسال شده در بهمن 93 گزارش بازنشر ارسال شده در بهمن 93 سلاممن میخواستم وقتی فهرستی را انتخاب کرده و مطالب آن فهرست می آید این امکان را داشته باشیم که بتوانیم بر اساس موضوع خاصی آن مطالب را فیلتر کنیم مثلا لیست کفش ها هستند حالا بتوانیم بر اساس سایز کفش مطالب را فیلتر کنیمگشتم این افزونه را پیدا کردمhttps://wordpress.org/plugins/beautiful-taxonomy-filters/faq/می خواستم ببینم کسی با این افزونه کار کرده و اینکه دقیقا post type که میگه چی هست من بعد از نصب درست نتونستم باهاش کار کنم یا اصلا این افزونه مناسبی برای منظور من هست یا نه چیز دیگری باید استفاده کنم؟؟ نقل قول لینک به ارسال
Parsa 23463 ارسال شده در بهمن 93 گزارش بازنشر ارسال شده در بهمن 93 پست تایپ یا پست سفارشیبرای ایجاد یک نوع خاص پست در وردپرس هستپیشفرض نیازی نداریدنوع پیشفرض پست هم با نام post هست 1 نقل قول لینک به ارسال
narci 1 ارسال شده در بهمن 93 مالک گزارش بازنشر ارسال شده در بهمن 93 کارهایی که من انجام دادم این هست که مطلبی را ایجاد کرده و به دوتا از دسته ها ارتباطش دادم مثلا دسته کفش و دسته سایز کفش حالا اومدم در فایل archive کد <?php if( have_posts() ) : ?را پیدا کردم و دستور کدی که داده بود را خط بالایی این کد paste کردم اینم توضیحاتی که افزونه داده بود How to use Beautiful Taxonomy Filters Select the post types you want to use the filtering on. Note: if the post type aren't connected to one or more taxonomies you wont see any results. Exclude any taxonomies you don't want the users to be able to filter on. Note: Only affects taxonomies that are connected to post types you have selected Save Changes. success! Your previously ugly taxonomy filtering is now oh so beautiful! To use the dropdown filter module you can either use the widgets, automagic feature or copy: <?php if(function_exists('show_beautiful_filters')){ show_beautiful_filters(); } ?> and paste it in your archive.php file in your template. It should be placed somewhere above <?php if( have_posts() ) : ?> Note: The layout of archive.php may differ drastically between different themes. We can't help you with the placement of the function in your theme so just try some locations (you can just remove the function again if something breaks) or ask in your themes support forum. Best of luck! To show the active filter info either use the widgets, automagic feature or copy: <?php if(function_exists('show_beautiful_filters_info')){ show_beautiful_filters_info(); } ?> to wherever you want the filter info to appear.اینم نمونه جایی که من کد را اضافه کردم <?php if(function_exists('show_beautiful_filters')){ show_beautiful_filters(); } ?> <div class="cat-body<?php echo $srclass; ?>"> <ul class="nb1 <?php echo $swiclass; ?> clearfix"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>ولی هیچ اتفاقی نیوفتاده کجای کارم اشکال داره؟؟؟ نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .