Hi.
I am happy to hear the plugin is helpful for you :). The HTML table in the second page is good in terms of the requirements and works on my test site. I think the problem is that the page is actually an archive not a post or a page. So this is not exactly page or post content. Please try enabling all the options for multi-row tables in the plugin to see if any of them will target that content and let me know:
Enable in post/page content
Enable in post/page excerpt
Enable in category descriptions
Enable in widgets
Regards.
Hi @nnikolov ,
Thanks for getting back at me. I already have activated all options and still nothing. Maybe it doesn’t support archive templates? Could you assist me how to implement it?
Thanks a lot!
I tried now on generatepress theme on a category archive page with showing full post content there, and it does work. So it works on archives if you show post content there.
I am not sure where is your content coming from, is this content from a post? It seems to be an archive, but does it show list of posts content? Where in the backend did you fill this table content?
Also just to be sure I will mention that you have to clear the cache of caching plugins.
Also can you try to test a really simple html table to see if it will work on the same page:
<table>
<tr>
<th>test1</th>
<th>test2</th>
<th>test3</th>
</tr>
<tr>
<td>test</td>
<td>test</td>
<td>test</td>
</tr>
<tr>
<td>test</td>
<td>test</td>
<td>test</td>
</tr>
</table>
Something must be up with my archive template then… The template is custom, but it loads all the necessary wordpress things (header, footer, sidebar, etc.). Has some logic to display the posts inside a taxonomy but that’s that. These are custom post types, with custom fields, with custom taxonomy (The one i’m having issues with). All created in ACF.
Cache has been cleared. Also added the example table, but same results:
https://www.baste-sportive.com/competition/english-premier-league/
I have to see the code inside the php file that loads the post content. It is probably loaded in a way that does not use the_content hook: https://developer.projectdmc.org/reference/hooks/the_content/
One way to use it is to call the_content() function.
Show me the part of the php code that calls the post content here in this thread if possible.
Hi Nikolay, take a look:
https://secret.ist.ie/r/6730a21d5436c1@47963655
Note will self-destruct after you view it once. I also tried it with the_content() but with no luck.
Ah, now I see what you are doing. You are echoing the HTML code of the table directly. This will not work. Needs to run through a filter that my plugin uses. Do this:
After this code:
if ( is_tax( ‘competition’ ) ) {
Add this code:
ob_start();
After this code:
wp_reset_postdata();
Add this code:
$output = ob_get_contents();
ob_end_clean();
echo apply_filters(‘the_content’, $output);
This will run the whole output through the the_content filter as if it is a post content. Keep in mind that some things may change in the code from that. But try to see if it is fine.
Perfect! Thank you so much 😄