lucius100
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: My WordPress Loop strangeOk, I finally solved the problem, but I don’t know wtf is going on, lol.
I research more and found this problem with same issues as mine.
https://wordpress.stackexchange.com/questions/364381/unwanted-duplicate-posts-showing-in-pagination-pages@soberbanda It seems like you said, need to used wp query for index page maybe ?
So I changed the loop to wp query
<?php $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $query = new WP_Query( array( 'post_type' => 'post', 'post_status' => 'publish', 'paged'=> $paged) ); ?> <?php while($query->have_posts()) : $query->the_post(); ?>
The duplicate only on the next pagination page, after changed with wp query, no more duplicated post. So any Idea where it went wrong ?
Or wordpress need to use wp query in index.php ?Not WP all import issues, case closed.
Forum: Fixing WordPress
In reply to: My WordPress Loop strange@soberbanda that method of using wp query even worst. I don’t think to loop a simple post in front page required to use wp query. That being said, I don’t think there’s something wrong with the code either. Just confused how the heck it happened.
I mean, I don’t have duplicate post in database/admin page, but it’s looping duplicate post in front page.
I even count the total page with the pagination, it shows correct number of my total post. But some of the post not appearing in front page because it’s duplicated by other post.Forum: Fixing WordPress
In reply to: My WordPress Loop strange@soberbanda The problem is I don’t have duplicate post in my site, but the post looping show duplicate and hide some of my existing post.
Forum: Fixing WordPress
In reply to: How to purgecss with wordpress ?@t-p That’s free product, not commercial product, you can see their open source code in github. I thought it was related to wordpress so I can ask it here since it’s more like wordpress configuration cases.
Well, if it’s not supported here, you may close this thread, thanks.Forum: Fixing WordPress
In reply to: WordPress filter without plugin ?Ok, I shall mark this topic as solved, thanks guys ??
Forum: Fixing WordPress
In reply to: Duplicate QueriesOk sir, it works great, now I can confirm all my main query only 1, not duplicated, I would guess because query monitor was activated, it count as 2 before.
After I use php error_log all the referrer only once. Thanks for the help, I shall mark it as solved.Forum: Fixing WordPress
In reply to: WordPress filter without plugin ?@mgibbs189 I just want a simple filter, facetwp too powerful for me, lol. Learn a few things during quarantine and WFH should be okay.
@alanfuller I bookmark a few articles back then. You can check these out, I didn’t try it yet tho.
https://inspirationalpixels.com/search-results-filter-wordpress/#section-final-code
https://rudrastyh.com/wordpress/ajax-post-filters.htmlForum: Fixing WordPress
In reply to: WordPress filter without plugin ?Uuhhmm no, I am just listing facetwp as example, so u guys know what kind of filter I am talking about. So it’s not really a facetwp problem, and not a support question about facetwp. The filter may look like on this site moviewp.com, but having multiple checkboxes option will be better if possible.
Forum: Fixing WordPress
In reply to: Duplicate QueriesOkay, so I tried it, and here is some log that generated.
[Wed Aug 25 22:11:26.592698 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:62911] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:11:26.592698 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:62911] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:11:26.594699 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:62911] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:11:26.633703 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:62911] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:11:26.635703 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:62911] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:11:26.639695 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:62911] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:11:36.884743 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:62266] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:11:36.884743 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:62266] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:11:36.885745 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:62266] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:11:36.925752 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:62266] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:11:36.927761 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:62266] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:11:36.934758 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:62266] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:11:48.787980 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:49671] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:11:48.787980 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:49671] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:11:48.792975 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:49671] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:11:48.803989 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:49671] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:12:24.851753 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:52878] pre_get_posts had fired., referer: https://localhost/wa/?s=logjfjjtj [Wed Aug 25 22:12:24.851753 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:52878] pre_get_posts had fired., referer: https://localhost/wa/?s=logjfjjtj [Wed Aug 25 22:12:24.853755 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:52878] pre_get_posts had fired., referer: https://localhost/wa/?s=logjfjjtj [Wed Aug 25 22:12:24.890762 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:52878] pre_get_posts had fired., referer: https://localhost/wa/?s=logjfjjtj [Wed Aug 25 22:12:24.892764 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:52878] pre_get_posts had fired., referer: https://localhost/wa/?s=logjfjjtj [Wed Aug 25 22:12:24.897765 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:52878] pre_get_posts had fired., referer: https://localhost/wa/?s=logjfjjtj [Wed Aug 25 22:14:24.766346 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:52062] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:14:24.766346 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:52062] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:14:24.768949 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:52062] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:14:24.814956 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:52062] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:14:24.817957 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:52062] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:14:24.818957 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:52062] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:14:24.819957 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:52062] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:14:24.820957 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:52062] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:14:24.827961 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:52062] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:14:59.188992 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:53733] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:14:59.189992 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:53733] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:14:59.193000 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:53733] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:14:59.238016 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:53733] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:14:59.240512 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:53733] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:14:59.241512 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:53733] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:14:59.246520 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:53733] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:15:32.543407 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:52258] pre_get_posts had fired., referer: https://localhost/wa/?s=eum [Wed Aug 25 22:15:32.577397 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:52258] pre_get_posts had fired., referer: https://localhost/wa/?s=eum [Wed Aug 25 22:15:32.579397 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:52258] pre_get_posts had fired., referer: https://localhost/wa/?s=eum [Wed Aug 25 22:15:32.580397 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:52258] pre_get_posts had fired., referer: https://localhost/wa/?s=eum [Wed Aug 25 22:15:32.582398 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:52258] pre_get_posts had fired., referer: https://localhost/wa/?s=eum [Wed Aug 25 22:15:32.925493 2021] [php7:notice] [pid 14000:tid 1828] [client ::1:51780] pre_get_posts had fired., referer: https://localhost/wa/sapiente-inventore-harum-aliquam-similique-eum-voluptas/ [Wed Aug 25 22:15:32.934185 2021] [php7:notice] [pid 14000:tid 1828] [client ::1:51780] pre_get_posts had fired., referer: https://localhost/wa/sapiente-inventore-harum-aliquam-similique-eum-voluptas/ [Wed Aug 25 22:15:32.936191 2021] [php7:notice] [pid 14000:tid 1828] [client ::1:51780] pre_get_posts had fired., referer: https://localhost/wa/sapiente-inventore-harum-aliquam-similique-eum-voluptas/ [Wed Aug 25 22:15:32.937191 2021] [php7:notice] [pid 14000:tid 1828] [client ::1:51780] pre_get_posts had fired., referer: https://localhost/wa/sapiente-inventore-harum-aliquam-similique-eum-voluptas/ [Wed Aug 25 22:15:32.939198 2021] [php7:notice] [pid 14000:tid 1828] [client ::1:51780] pre_get_posts had fired., referer: https://localhost/wa/sapiente-inventore-harum-aliquam-similique-eum-voluptas/ [Wed Aug 25 22:15:51.320360 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:58747] pre_get_posts had fired., referer: https://localhost/wa/sapiente-inventore-harum-aliquam-similique-eum-voluptas/ [Wed Aug 25 22:15:51.321360 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:58747] pre_get_posts had fired., referer: https://localhost/wa/sapiente-inventore-harum-aliquam-similique-eum-voluptas/ [Wed Aug 25 22:15:51.322361 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:58747] pre_get_posts had fired., referer: https://localhost/wa/sapiente-inventore-harum-aliquam-similique-eum-voluptas/ [Wed Aug 25 22:15:51.362362 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:58747] pre_get_posts had fired., referer: https://localhost/wa/sapiente-inventore-harum-aliquam-similique-eum-voluptas/ [Wed Aug 25 22:15:51.364370 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:58747] pre_get_posts had fired., referer: https://localhost/wa/sapiente-inventore-harum-aliquam-similique-eum-voluptas/ [Wed Aug 25 22:15:51.365370 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:58747] pre_get_posts had fired., referer: https://localhost/wa/sapiente-inventore-harum-aliquam-similique-eum-voluptas/ [Wed Aug 25 22:15:51.366371 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:58747] pre_get_posts had fired., referer: https://localhost/wa/sapiente-inventore-harum-aliquam-similique-eum-voluptas/ [Wed Aug 25 22:15:51.368364 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:58747] pre_get_posts had fired., referer: https://localhost/wa/sapiente-inventore-harum-aliquam-similique-eum-voluptas/ [Wed Aug 25 22:15:51.372365 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:58747] pre_get_posts had fired., referer: https://localhost/wa/sapiente-inventore-harum-aliquam-similique-eum-voluptas/ [Wed Aug 25 22:16:04.593870 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:16:04.629865 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:16:04.631863 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:16:04.632864 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:16:04.633863 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:16:04.637865 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:16:04.640866 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:16:04.642868 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:16:04.644867 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:16:04.647867 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:16:04.649868 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:16:04.650868 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:16:04.652868 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:16:05.002050 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/magnam-amet-dolore-sit-esse/ [Wed Aug 25 22:16:05.039041 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/magnam-amet-dolore-sit-esse/ [Wed Aug 25 22:16:05.041050 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/magnam-amet-dolore-sit-esse/ [Wed Aug 25 22:16:05.043049 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/magnam-amet-dolore-sit-esse/ [Wed Aug 25 22:16:05.044057 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/magnam-amet-dolore-sit-esse/ [Wed Aug 25 22:16:05.048043 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/magnam-amet-dolore-sit-esse/ [Wed Aug 25 22:16:05.050051 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/magnam-amet-dolore-sit-esse/ [Wed Aug 25 22:16:05.051043 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/magnam-amet-dolore-sit-esse/ [Wed Aug 25 22:16:05.053044 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/magnam-amet-dolore-sit-esse/ [Wed Aug 25 22:16:05.056046 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/magnam-amet-dolore-sit-esse/ [Wed Aug 25 22:16:05.058045 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/magnam-amet-dolore-sit-esse/ [Wed Aug 25 22:16:05.059046 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/magnam-amet-dolore-sit-esse/ [Wed Aug 25 22:16:05.061047 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:61409] pre_get_posts had fired., referer: https://localhost/wa/magnam-amet-dolore-sit-esse/ [Wed Aug 25 22:16:40.917359 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:62441] pre_get_posts had fired., referer: https://localhost/wa/magnam-amet-dolore-sit-esse/ [Wed Aug 25 22:16:40.917359 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:62441] pre_get_posts had fired., referer: https://localhost/wa/magnam-amet-dolore-sit-esse/ [Wed Aug 25 22:16:40.918359 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:62441] pre_get_posts had fired., referer: https://localhost/wa/magnam-amet-dolore-sit-esse/ [Wed Aug 25 22:16:40.956367 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:62441] pre_get_posts had fired., referer: https://localhost/wa/magnam-amet-dolore-sit-esse/ [Wed Aug 25 22:16:40.958369 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:62441] pre_get_posts had fired., referer: https://localhost/wa/magnam-amet-dolore-sit-esse/ [Wed Aug 25 22:16:40.959370 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:62441] pre_get_posts had fired., referer: https://localhost/wa/magnam-amet-dolore-sit-esse/ [Wed Aug 25 22:16:40.961370 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:62441] pre_get_posts had fired., referer: https://localhost/wa/magnam-amet-dolore-sit-esse/ [Wed Aug 25 22:16:40.962369 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:62441] pre_get_posts had fired., referer: https://localhost/wa/magnam-amet-dolore-sit-esse/ [Wed Aug 25 22:16:40.967372 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:62441] pre_get_posts had fired., referer: https://localhost/wa/magnam-amet-dolore-sit-esse/ [Wed Aug 25 22:16:51.514411 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:51651] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:16:51.548330 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:51651] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:16:51.551332 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:51651] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:16:51.552331 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:51651] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:16:51.554337 2021] [php7:notice] [pid 14000:tid 1836] [client ::1:51651] pre_get_posts had fired., referer: https://localhost/wa/ [Wed Aug 25 22:16:51.895407 2021] [php7:notice] [pid 14000:tid 1828] [client ::1:60594] pre_get_posts had fired., referer: https://localhost/wa/voluptatum-aut-quia-vero-impedit-officia-fugiat/ [Wed Aug 25 22:16:51.902410 2021] [php7:notice] [pid 14000:tid 1828] [client ::1:60594] pre_get_posts had fired., referer: https://localhost/wa/voluptatum-aut-quia-vero-impedit-officia-fugiat/ [Wed Aug 25 22:16:51.904417 2021] [php7:notice] [pid 14000:tid 1828] [client ::1:60594] pre_get_posts had fired., referer: https://localhost/wa/voluptatum-aut-quia-vero-impedit-officia-fugiat/ [Wed Aug 25 22:16:51.906411 2021] [php7:notice] [pid 14000:tid 1828] [client ::1:60594] pre_get_posts had fired., referer: https://localhost/wa/voluptatum-aut-quia-vero-impedit-officia-fugiat/ [Wed Aug 25 22:16:51.908419 2021] [php7:notice] [pid 14000:tid 1828] [client ::1:60594] pre_get_posts had fired., referer: https://localhost/wa/voluptatum-aut-quia-vero-impedit-officia-fugiat/
Right now I am not using cpt query, and I only add filter search to post with pre_get_posts so it doesn’t include pages. How to check for duplicate queries in the log ?
Forum: Fixing WordPress
In reply to: Duplicate QueriesI don’t really get it.
Can I see the sample code ?
Does that error_log went into browser console or we need to enable wp-debug and it logs to wp-content ?Forum: Developing with WordPress
In reply to: Any efficient way to get/display single terms ?Thanks, that’s good and detailed answer.
Forum: Fixing WordPress
In reply to: Duplicate QueriesOk, thanks, that clear a lot of question.
Btw, can you teach me how u determine there’s only 1 query using error logging ?
I wanna know how u do the error logging.
Using the wp-debug only log any php error, not determining the query.Forum: Fixing WordPress
In reply to: Duplicate QueriesWell, no, I used a test site, whole make from scratch and install new wordpress with query monitor plugin only, and use default theme, all default theme front page got 2 duplicate queries. So I thought that was normal. I think will do more research about this if it’s not normal ??
I have seen a lot of tutorials online that make theme from scratch randomly used new wp_query, after I read that duplicate wp_query gonna cause website running slow, I become too paranoid about this.
Forum: Developing with WordPress
In reply to: Any efficient way to get/display single terms ?Cool, that works fine sir.
Is it possible, or maybe better to add that to functions.php as shortcode to use ?https://developer.www.ads-software.com/reference/functions/get_the_terms/
Example of a wrap function for get_the_terms() with a return list of terms added to the post.At the below example only need <?php echo wpdocs_example_get_the_terms( ‘taxonomy’ ) ?>
I used that code in my page few times, does it better to implement it like that shortcode ? If so how ?
I feel like it’s cleaner on the html side, lol.