Apologiesin advance for a question, which to an expert, I've no doubt is relatively obvious. I've looked at WordPress Codex for the appropriate information (the_post_thumbnail, the_excerpt, etc) but am not well versed enough in .php yet to implement it properly. Still learning!
I am trying to display, within the of a standard (WP) page, the child-pages, including their Title, Thumbnail and Excerpt. I can get everything to work bar the THUMBNAIL and EXCERPT with the following:
So far, I can see the links/titles of the correct child-pages, and in the correct order, but not the Thumbnail or Excerpt. Obviously, I am not calling the Thumbnail or the Excerpt properly. Could someone please correct me?
$post->the_excerpt is not necessarily filled. If you look at the add/edit post screen you'll notice two textfields, one for editing the content of the post and one for the excerpt. The excerpt is optional, so the function the_excerpt() shows the content of that field, but when it is empty it will show the first X characters of $post->the_content.
I am wondering if there is a way to include an excerpt on the parent page, but one that updates based on the excerpt of the most recent child page. I know that with 'Excerpt Include', I could just edit it to the name of the most recent child page, but is there a way to do it autonomously? Maybe there's a macro that allows me to edit as "Date Created" for the child page or something.
To clarify, you want the excerpt on the parent page to match an excerpt on the most recently updated child page? Or you want the parent page to have an excerpt of the most recent child page?
Okay so this macro should go on a page that also has the excerpt-include macro on it, and has child pages with the excerpt-include macro on them
The macro (running on the parent page) looks at the most recently updated child page, and gets the settings of the excerpt-include macro on that child page.
It then updates the excerpt-include macro on the parent page to match the child page.
If you want to learn more about how I put it together, I wrote a little blog post about it: -in-confluence-macros-1-what-even-is-a-javascript-promise/
You'll find that a lot with Atlassian products. There's not a ton of beginner material out there.
Macros seem to be 95% JavaScript. If you learn JS, I think you're most of the way there toward writing macros. I only just started, myself; this macro that I wrote for you was my second macro project. But because I'm familiar with Confluence itself, I was able to figure out the rest.
Using WordPress 5.1.1 and the Classic Editor plugin is not a problem. You may enable the page excerpt in the Screen options in the page editing screens. Check out this codex to learn where you can find the screen option:
Here is the scenario
1. I have child pages with tables in a 'Table Excerpt' macro
2. I use this table excerpt to create a pivot table in an 'Excerpt' macro on the same page
3. I then have a parent page with a 'Children Display' macro which is set to get all excerpts from child pages with 'Excerpt Display' set to 'rich content'
The weird thing is that the preview of the page shows the pivot tables as intended but when I save the page, then I just have messages with 'Oops, it seems that you need to place a table or a macro generating a table within the Pivot Table macro'
Try to put Table Excerpt macro inside Excerpt macro. I don't know why it works in the parent page preview, but it shouldn't, because Table Excerpt Include macro works only when there is Table Excerpt macro on the same page.
Because I didn't want to have the source table show up in the parent page, I set the table excerpt to hide the table and then tried to use a 'Table Excerpt Include' on the same child page but guess that doesn't render a table on its own.
In order to reuse the table on the parent page you need to include it with Excerpt + Excerpt Include macros. To hide this table on the parent page you can place it within Pivot Table or Chart from Table macro with "hide source table" option checked or place it within Table Excerpt macro with "hide table" option checked.
I had in my care that summer four dogs, three cats, the Moran kids, Daisy, my eight-year-old cousin, and Flora, the toddler child of a local artist. There was also, for a while, a litter of wild rabbits, three of them, that had been left under our back steps. They were wet and blind, curled up like grubs and wrapped in a kind of gray caul -- so small it was difficult to know if their bodies moved with the beating of their hearts or the rise of their breaths. Not meant to live, as my parents had told me, being wild things, although I tried for nearly a week to feed them a watery mixture of milk and torn clover. But that was late August.
Late in June, Daisy arrived, the middle child of my father's only sister. She came out by herself on the Long Island Railroad, her name and address written on a piece of torn brown paper and attached to her dress with a safety pin. In my bedroom, which she was to share, I opened her suitcase, and a dozen slick packages slid out -- tennis sets and pedal-pusher sets, Bermuda shorts and baby doll pajamas and underwear, all brand-new and still wrapped in cellophane. There was a brand-new pair of sneakers as well, the cheap, pulled-from-a-bin kind, bound together with the same plastic thread that held their price tag, and another, even cheaper pair of brittle pale pink slip-ons studded with blue and turquoise jewels. Princess shoes. Daisy was vain about them, I could tell. She asked me immediately -- she was the shy child of strict parents so most of what she said involved asking for permission -- if she could take off the worn saddle shoes she had traveled in and put them on. "I won't wear them outside till Sunday," she promised. She had the pale blue, nearly translucent skin of true redheads, a plain wisp of a child under the thick hair and the large head. It made no difference to me what kind of shoes she wore, and I told her so. I was pretty sure they were meant to be bedroom slippers anyway. "Why wait for Sunday?" I said.
Kneeling among the packages that made up her wardrobe, I asked, "Didn't you bring any old clothes, Daisy Mae?" She said her mother had told her that whatever else she needed to wear she could borrow from me. I was fifteen that summer and already as tall as my father, but my entire life's wardrobe was stored in the attic, so I knew what she meant. Daisy herself had six brothers and a sister, and even at fifteen I knew that my aunt and uncle resented what they saw as the lavish time and money my parents spent on me, an only child. I knew, in the way fifteen-year-old girls know things -- intuitively, in some sense; in some sense based purely on the precise and indifferent observation of a creature very much in the world but not yet of it -- that Daisy's parents resented any number of things, not the least of which, of course, was Daisy. She was only one of what must have been to them a long series of unexpected children. Eight over the course of ten years, when apparently what they had been aiming for was something more like two or three.
Just the winter before I had spent a weekend with them in their tidy house in Queens Village. I had come up from East Hampton precisely to take poor Daisy (to us, she was always "poor Daisy") into Manhattan to see the Christmas show at Radio City. My Aunt Peg, my father's sister, picked me up at the Jamaica station and immediately dropped the hint that it was impolite and unfair of me not to have invited Bernadette, her twelve-year-old, to come along, too. Aunt Peg was a thin and wiry woman, only, it seemed, a good night's sleep away from being pretty. Under her freckles, her dry skin was pale, and her thick, brittle hair was a weary, sun-faded shade of auburn. Even as she drove, she had a way of constantly leaning forward, as if into a wind, which of course added to her air of determined efficiency. (I could well imagine her pushing a shopping cart through the Great Eastern Mills in Elmont, pulling shorts sets and tennis sets from the crowded bins -- one, two, three, four, underwear, pajamas, shoes -- dumping all of them directly from shopping bag to suitcase, toss in a hairbrush and a toothbrush, slam the case, done.) "Bernadette will have to find her own fun tomorrow" was the way she put it to me, leaning into the steering wheel as if we were all headed downhill.
BookBrowsers LLC 1997-2024. All rights reserved.
Information at BookBrowse.com is published with the permission of the copyright holder or their agent.
It is forbidden to copy anything for publication elsewhere without written permission from the copyright holder.
No problem. Regarding the excerpts, they are not displaying because the posts were built using the Advance Layout Builder. You have to edit the posts, enable the Excerpt box from Screen Options and add the summary or excerpt manually in the Excerpt field.
It is actually easy to extract a text or a piece of data from the builder and use it as the excerpt but the problem is that we cannot predict or know which element or text you or other users would like to actually use as excerpt, which is why it is left blank.
LinkedIn and 3rd parties use essential and non-essential cookies to provide, secure, analyze and improve our Services, and to show you relevant ads (including professional and job ads) on and off LinkedIn. Learn more in our Cookie Policy.
Remember the unique connection that is between you and your child, it is still there, it is always there. It will be hard to see sometimes because of the tears, the anger, the frustration, the blame, the depression, the anxiety, the fear.
Let those feeling come and go, but always hold onto the love, the unbroken bond you created with your love. It is always there, recall it, love it, embrace it and hold onto it, because the love is what connects you. The invisible golden thread of two hearts that loved. The song only you two can sing.
3a8082e126