nao19jpn
Forum Replies Created
-
Forum: Plugins
In reply to: [GenerateBlocks] Why “Toggle to use the global query context” doesn’t work?um…
Other way,
Yesterday, I set up software LOCAL(wordpress runs) to my PC.
(do you know this software? https://localwp.com/ )
I install only GB and theme “INKspot FSE”.
and my plugin. no any other plugin installed.
this small plugin is made by
– Generate WP
– WordPress Code Generators
look a video below.
but it (inherit query from template) doesn’t work.
TAG also doesn’t showed.
– – – –
1 question. my plan has began from here,
do you know his youtube video and this technic?
https://www.youtube.com/watch?v=ll2limO4V3M
I referenced this video, and I made Custom Post type plugin code,
and I use with GB.
this video’s PHP was old (probably 7.x), it makes error.
so I had to fix the code a little bit.
but I don’t think it is a matter of this situation.
Do yo think this plugin or DB table or data are wrong?Forum: Plugins
In reply to: [GenerateBlocks] Why “Toggle to use the global query context” doesn’t work?Hi Fernando,
Thank you for caring about me.
I didn’t modify. I just added blank-new-line.
but just in case,
I uninstalled it and reinstall now. GB1.8.2
Total line is 291 right, correct.
(1) I fixed line 182.
(2)Query setting : inherit query from template : ON doesn’t work.
–> so I turn it OFF.
(3) Query setting : Taxonomy / Category / #16: PRODUCTS

* It got back as same before reintalling.
https://www.stfreak.com/sv/?cat=236
note:
I add new Query(blue area) using plugin “ADVANCED QUERY LOOP”.
inherit query from template : ON doesn’t work.
–> so I turn it OFF.
but this does not work too.kind regards,
Forum: Plugins
In reply to: [GenerateBlocks] Why “Toggle to use the global query context” doesn’t work?now settings,
“Inherit query from template” : OFF
Custom POST : shouhins
Taxonomy : Category
Term : #16 Products (presetting. anything is fine, but if null does not work)
Forum: Plugins
In reply to: [GenerateBlocks] Why “Toggle to use the global query context” doesn’t work?hello Ying,
There are 2 class-query-loop.php
A) \generateblocks\includesclass-query-loop.php
total line: 305
B) \generateblocks\includes\blocks\class-query-loop.php
total line :78
(I retouched some lines, but almost numbers are same.)I am talking about “A” . and line182.
Thank you.Forum: Plugins
In reply to: [GenerateBlocks] Why “Toggle to use the global query context” doesn’t work?hi David,
Sorry, my miswritten. Directly was wrong. There are same file-name.
Correct directly is
wp-content\plugins\generateblocks\includes\class-query-loop.php
I didn’t modifying other codes. (just only // comment )
I only changed the line:182 below,
‘terms’ => $_GET [‘cat’] ?? $_GET [‘tag’], //ex. ‘terms’ =>$tax[‘terms’]
$tax[‘terms’] probably NULL, I don’t know why.
Thank you for caring about me, David.
I really need this plugin.
NaoForum: Plugins
In reply to: [GenerateBlocks] Why “Toggle to use the global query context” doesn’t work?hi David,
Thank you fro your help. I believe you.
I’m keeping to resolve this problem.
now I got something.
wp-content\plugins\generateblocks\includes\blocks\class-query-loop.php
line: 182
$tax[‘terms’] probably NULL, I don’t know why.
so I change to it below,
‘terms’ => $_GET [‘cat’] ?? $_GET [‘tag’],
then it looks little bit good,
‘terms’ can receive cat-number or tag-text.
it can show per category.
https://www.stfreak.com/sv/?cat=236
but, next page doesn’t view (it has 9posts).
and TAG doesn’t work either …
What do you think? do you know something?
kind regards,Forum: Plugins
In reply to: [GenerateBlocks] Why “Toggle to use the global query context” doesn’t work?I tried 24 too, but it doesn’t work.
https://www.stfreak.com/sv/category/strange_freak/products/ring2/
https://www.stfreak.com/sv/category/strange_freak/products/pendant2/ok, Final asking.
when you try 24, and you click another category B,
then, is category B only published?
(If all posts published, it is not I want.)Thanks a lot.
NaoForum: Plugins
In reply to: [GenerateBlocks] Why “Toggle to use the global query context” doesn’t work?hi David,
I tried some patterns, but it doesn’t work.I changed “Perma link”, please see this
https://www.stfreak.com/sv/category/strange_freak/products/ring2/
and please click “PENDANT2” on right side menu.
Archive-Title can change. but card is not published. why?Forum: Plugins
In reply to: [GenerateBlocks] Why “Toggle to use the global query context” doesn’t work?yes,
I want to use as same as normal action.
When I click the any category/tag, then “ALL Archives template” makes that page.
but this query is not realized.
Does this plugin not act like that?
in this case, Ring’s cards are published.
but when I click the “Pendant”, it doesn’t show anything at 2nd query ares.Forum: Plugins
In reply to: [GenerateBlocks] Why “Toggle to use the global query context” doesn’t work?hi there,
Thank you for replying.
so, You mean that
GenerateBlocks’s query cannot use with all-archive-template?
(in normaly inherit query,what if I click the category A, then all-archive-template makes page A. if Click tag 1 then page tag1.)
Should I make many templates??
Category-A template (make A query)
Category-B template (make B query)
Category-C template (make C query)
. . .
Tag-1 template (make 1 query)
Tag-2 template (make 2 query)
Tag-3 template (make 3 query)
. . . ?
it is not smart.
Sorry, I’m not professional of Programing.Forum: Plugins
In reply to: [GenerateBlocks] Why “Toggle to use the global query context” doesn’t work?I mean,
it use only 1 template page,
then I want to show per category pages and per tag pages when customer click the category/tag link.
Is this difficult?kind regards,
NaoForum: Plugins
In reply to: [GenerateBlocks] Why “Toggle to use the global query context” doesn’t work?Hello ying,
Thank you for watching.
> do you mean the Inherit Query From Template option?
YES, I want the swith turn ON.
I have read and understood the system.
so, you mean it must work, right?
I think it too.
My Theme is “Inkspot FSE” here
https://gracethemes.com/themes/free-tattoo-artists-wordpress-theme/
but tentatively, I changed to “Twenty-Twenty-Four”,
It still doesn’t work…
See my page (now TTF).
https://www.stfreak.com/sv/?cat=7
more info,
I watching this video
https://www.youtube.com/watch?v=ll2limO4V3M
wp-skills(WordPress MetaBox Generator),
Post Type Generator
but PHP 8.0 says some error, so I fix the codes.
What’s wrong on my wp?
Are my post datas wrong?