yortem
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: I see navigation when not neededit doesnt work. this is the code i have now (someone that helped me gave me this code to solve another problem i had)
if ( get_query_var('paged') ) { $paged = get_query_var('paged'); } elseif ( get_query_var('page') ) { $paged = get_query_var('page'); } else { $paged = 1; } $archive_args = array( 'post_type' => 'products', // get only products 'category__in' => $current_cat, 'posts_per_page' => 12, 'include_children' => false, 'paged' => $paged, ); $archive_query = new WP_Query( $archive_args );i dont see the children posts. but i see the number of pages when there are no posts in the main category
- This reply was modified 8 years, 9 months ago by yortem.
Forum: Plugins
In reply to: [Contact Form Submissions] Ignore Mail2/Outgoing MailI’m with you on that one. hope they’ll find a solution.
i did, but then i disabled it and did only mail but now when i send mail its still send me the things i wrote in the chat. i tried from another computer and now it doesn’t send at all. (but other forms like CF7 does work)
well i gave up ><
about the second answer, i got the mail but it almost empty with 2 words that doesnt make any sense and i dont know where did they came from.
both of my problems are solved. i didn’t notice anything else yet. thanks.
Forum: Fixing WordPress
In reply to: show only direct posts of this categorymy solution was very simple. i replaced the query in the archive with a new one that has “‘category__in’ => $current_cat,” in it.
like that
$archive_args = array( post_type => 'products', // get only products 'category__in' => $current_cat, ); $archive_query = new WP_Query( $archive_args );and changed the while line
while ( $archive_query->have_posts() : ) : $archive_query->the_post();and it worked. the code is correct?
Forum: Fixing WordPress
In reply to: show only direct posts of this categoryit has nothing to do with child posts or child pages.
its regular posts that are inside child category.
what im asking is not something unusual, i just want to see the current category’s posts, thats all. i dont want to see the sub-categories posts.maybe i really dont understand.
- This reply was modified 8 years, 11 months ago by yortem.
Forum: Fixing WordPress
In reply to: show only direct posts of this categorythats not what i mean, not the url, the page archive.php
if you are in Archive called “Food”, you will see all the posts that are in Food, Yellow Food, Bananas, Lemons, Red Food, Green Food…
i dont want thatm i want to display only those posts that are directly under Food.
if there are posts under sub category they wont show.- This reply was modified 8 years, 11 months ago by yortem.
thanks anyway. great plugin
Forum: Plugins
In reply to: [Autoptimize] This plugin goes well with…?but i really need it? doesnt the Autoptimize do some kind of caching?
Forum: Plugins
In reply to: [Categories Images] Subcategories imagesdid you get a solution to your problem? im looking for the same thing.
Forum: Plugins
In reply to: [Autoptimize] aggregate inline JS and CSS doesnt workbut why it doesnt happen on other sites of mine that has the same paths?
sometimes same theme.well, as long as it works 🙂
thank you so much for your plugin and for you time!Forum: Plugins
In reply to: [Autoptimize] aggregate inline JS and CSS doesnt workyour files fixed it! can you explain?
Forum: Plugins
In reply to: [Autoptimize] aggregate inline JS and CSS doesnt work*deleted*
- This reply was modified 9 years, 3 months ago by yortem.