philipt18
Forum Replies Created
-
Deleted and re-installed, and it’s the same. What do I try next?
Can I just comment on something annoying during that process? I deleted the plugin and re-installed and when I went to set it up, it immediately connected to the WordPress.com account I was logged into, even though it was the wrong account. For those with a single account I’m sure that’s convenient, but I think it makes more sense to have a button to click to continue assuming the account is correct, and a link to switch accounts if it isn’t. Because the site got added to the wrong account, it added a lot of steps to correct it.
Forum: Plugins
In reply to: [Custom Content Shortcode] Extra line spaces in loop where IF statements areSo first I tried enabling the [raw] shortcode and using that, but it didn’t seem to do anything. Not sure if that was to do with Gutenberg or not. Then I changed the code to:
[loop type=post category=pr,article orderby=date order=DESC paged=10 query=pg][if category=pr]PR[/if][if category=article]Article[/if] [field title-link][if field=article-author]<br/>[field article-author][/if] [field date] <p></p> [/loop] [loopage query=pg]
and it seems to work. Basically wherever there was a new line in the code, WordPress was inserting a <br /> tag. Pretty frustrating.
Okay I think this works:
<table style="table-layout:fixed; width: 100%;"> [set total]0[/set] [loop type=post order=DESC] [calc]total = total + 1[/calc] [if var=total value=1]<tr>[/if] <td>[field image-link]</td> [if var=total value=3]</tr>[/if] [if var=total value=3][set total]0[/set][/if] [/loop] </table>
I’ve been thinking maybe there’s a way to do this by incrementing a variable and at every time it’s 1 insert a <tr> and every time it’s a 3 insert a </tr>, and every third time through the loop reset the variable to 0, and at the beginning of the loop increment it by one. Something like that. My brain is mush right now trying to figure it out, but maybe there’s something there.
I think I spoke to soon. Something weird is going on. I get two rows of three images, and then after the first image in the third row, it inserts a <TR> which messes up the layout. Now in some sense it makes sense since I have every=4 in the code, but if I set that to 3, then I only get a maximum of 2 images per row. It doesn’t make much sense. Any ideas?
- This reply was modified 4 years, 4 months ago by philipt18.
Okay, I think this is the code that does what I need:
<table width="100%"> [loop type=post order=DESC] [if every=4 first=true]<tr>[/if] <td width="33%">[field image-link]</td> [if every=3 last=true]</tr>[/if] [/loop] </table>
Still not sure why the first if needs 4 instead of 3, but it seems it does.
Thanks Peter for pointing me in the right direction.
Thank you. I’ll check out those tags. Right now I’m trying to figure out why the example code say this will display 4 posts at a time:
[loop type=post] [if every=5 first=true]<div class="group-container">[/if] [field thumbnail] [field title] [if every=4 last=true]</div>[/if] [/loop]
but the if statement shows 5.
Forum: Plugins
In reply to: [Custom Content Shortcode] Critical error when trying to edit a pageI never found a solution to this, but instead re-created the page, and deleted the original one.
Forum: Themes and Templates
In reply to: [OceanWP] Footer Widget area is darkThank you, that worked. Is that documented somewhere? Any idea why it was doing that? I can’t imagine the default is to darken the footer area like that. Thanks.
Forum: Plugins
In reply to: [Rootspersona] When will there be a version for WP 5.x?Ed,
Looking forward to seeing Rootspersona 4 next year. I hope you will build one or more blocks for Gutenberg that will let users display charts, reports, family views, person views, etc. in any WP page/post.
Philip
Forum: Themes and Templates
In reply to: [OceanWP] Using the left sidebar as the left sidebarAlternatively, you could rename (and add to) the layouts as:
Left and Right Sidebars
Left Sidebar
Right Sidebar
Right Sidebar on Left Side
Left Sidebar on Right Side
Sidebars Flipped (left on right, right on left)Forum: Plugins
In reply to: [Custom Content Shortcode] Gutenberg editor destroying CCS codeI’ve added this as an issue on the Gutenberg GitHub:
https://github.com/WordPress/gutenberg/issues/16015
Although maybe this is something that can be fixed within CCS as well. There are probably ways to inform Gutenberg how to properly handle shortcodes from your plugin.
Forum: Plugins
In reply to: [Allow Multiple Accounts] Not working after WP updateI have the same problem. It is allowing existing multiple accounts, but it won’t let me create new ones.
And oddly the Rename All Button now has about 400 and change less than the rest of the buttons.
I’m trying to figure out what’s going on in the debugger. Right now I’m trying the undo feature to see if it can undo what was done, but it’s also stopping in the middle. In the debugger I can see that some items take a few hundred ms, and some over 15s. Looking at the last few admin-ajax.php entries, I see: “nonces_expired”: true.
Earlier when the entries were still showing filenames I’m seeing some odd things like filenames that end in .html.jpeg.