Plugin Author
Ajay
(@ajay)
@extinctdisney
Does the automatic install work? Will you be able to install Query Monitor and check what are the queries generated and if the plugin finds posts.
https://webberzone.com/support/knowledgebase/debugging-with-query-monitor/
I’m not sure I understand the question “Does the automatic install work?” The only thing I am having trouble with is when I manually try to place CRP on my landing page. The automatic placement of the CRP at the specified location for each blog post is functioning fine. It is on my main landing page, where I added the CRP block, that the block renders blank. In fact, when I am in “edit” mode for my landing page, and add the block, it actually displays “Block rendered as empty” in place of where the CRP block should be.
Main landing page: http://extinctdisney.com (CRP should appear in what you see as white space on the right)
Post example: https://www.extinctdisney.com/flight-to-the-moon/ (CRP is displaying as it should near the bottom of the post)
Plugin Author
Ajay
(@ajay)
The second link answers my question on the automatic install.
By any chance do you have PolyLang or similar installed? I noticed a conflict with the block in the editor sometimes but works normally on the rendered page. But, I don’t know the workaround!
On Query Monitor, I’ll need to see what the query is on your landing page where CRP is blank. That’s the last screenshot in the link I posted.
Another alternative is that instead of using the block, can you try using the shortcode block and passing [crp] as the short code
-
This reply was modified 5 years, 2 months ago by
Ajay.
Query information on landing page:
SELECT option_name, option_value
FROM _PGF_options
WHERE autoload = ‘yes’
wp_load_alloptions()
Plugin Author
Ajay
(@ajay)
@extinctdisney
That doesn’t look at the plugin’s query. Are you able to please see the tutorial above and find the query from my plugin.
Have you tried the shortcode option to see if that renders?
I’d love to try to shortcode but I have no idea what the context for it should be. Can you please provide that?
If that doesn’t work, I’ll get the right query for you. Thanks!
Plugin Author
Ajay
(@ajay)
are you using some kind of page builder for the landing page or a specific template?
if it’s the former, there might be a shortcode block or similar where you an just enter [crp]
If you’re coding it into the theme, you can try <?php echo do_shortcode( '[crp]' ); ?>
No page builder or template. Just adding WordPress blocks and shortcode where I want it with plugins that control what is visible on mobile vs. desktop.
Simply entering “[CRP]” into a shortcode block doesn’t seem to do anything. Is there no further context?
For giggles I entered the php code using both the code block as well as a plugin that converts php to shortcode and neither worked.
Found alternate solution.
Plugin Author
Ajay
(@ajay)
How did you solve it? @extinctdisney
I believe the issue was related to the fact that the landing page wasn’t in any categories.