Bajireg
Forum Replies Created
-
Forum: Plugins
In reply to: [Page-list] How to show posts from newest?got it:
[pagelist number=”7″ post_type=”page” sort_column=”post_date” sort_order=”desc”]Thank you for your aswer, but I found better solution for me. Cheaper and easier to use ??
Have a nice day,
Ond?ejI tried before, butt didnt work :/
Are you working on module? or should i change tool?
Forum: Plugins
In reply to: [Custom Post Type UI] CPTs don’t show in categoryThank for your help.
I was googling for a long time again and finnaly I found code which was working for me.
Here is a solution for next:
Add code below to functions.php
function wpse_category_set_post_types( $query ){ if( $query->is_category ): $query->set( 'post_type', array( 'post', 'your-cpt-name' ) ); endif; return $query; } add_action( 'pre_get_posts', 'wpse_category_set_post_types' );
Don’t forgot to rename “your-cpt-name” to your cpt name. If you have more of them, just add comma behind first cpt and add more of them.
Have a good day a thank you again ??
Forum: Plugins
In reply to: [Custom Post Type UI] CPTs don’t show in categoryHi, thank you for fast answer ??
I’m using same code which is in tutorial (copy/paste).
Code under the title “Adding all CPTUI post types to the archives.”
AAlso I tried the secon one for specific CPT, but same problem.
Should I edit it to make it work?
- This reply was modified 4 years, 10 months ago by Bajireg.
Forum: Plugins
In reply to: [Collapse-O-Matic] Boxes are open by default and arrows doesn’t workThank you ??
Forum: Themes and Templates
In reply to: [Llorix One Lite] Latest news section (I cant see news)Thank you for fast answer… But my problem still exist
I tried it with private window, more browser or on other computers..
There are examples:
Bajirek