Is it possible to query a custom field and extract only part of it?

Hello @Lunatic_Zorr,

Thanks for writing in!

Yes, you can run a Looper Provider/Looper Consumer to get the reviews.

Once you can get the items, you should be able to get the book cover. If you can get me WP Access, I would love to check and create a demo for you.

You can create a secure note in your next reply with the following info:
– Link to your site
– WP login URL
– WP username
– WP password
– WP Administrator Role
– Confirmation that we can access and make changes to your site

To know how to create a secure note, please check this out: How The Forum Works

image

Best Regards.

Hi Ruenel,

Thank you for your reply. I’ve tried getting the image using the Looper Provider/Consumer but no luck so far.
I’ve created a user for you and added a secure note to my initial post.
For testing, I’ve used one of the templates that’s included and am trying to update it to get the image to display there, to learn how to display it. Feel free to edit the page as needed. The idea would be to only display the Book Cover images.

Example of the book cover can be seen here: https://www.kevinmaschke.com/en/i-am-rome-santiago-posteguillo/ at the bottom:

Thank you!

Hello @Lunatic_Zorr,

You will have to run a Looper Provider Query Builder to get all the post items and then you will have to nest a Looper Provider Dynamic Content “wp_review_schema_options” to get the Book details. Sample element structure:

Row - Looper Provider Query Builder
   Column - Looper Consumer
        DIV - Looper Provider Dynamic Content  "wp_review_schema_options" / Looper Consumer
            Image element - {{dc:looper:field key="Book.image.url"}}
       

You can check out the demo I have created on the given page above.

Best Regards.

Hi @ruenel

Oh wow! That’s amazing! Thank you! That is a perfect example :smile:
I’ve changed the looper provider from Latest Posts to a Query using the Query Builder to get posts only from one category. One thing I’ve noticed is that using WPML, I’ve copied the page into the other languages, and although the content is shown correctly, the Query Builder does show the taxonomies in one language only.

Is this a bug?

I’ve attached images below.

Hey @Lunatic_Zorr,

Please make sure that all your post items and your categories have been translated. If there are missing items, then that item must have NOT been translated into that language.

Could you please provide what items are missing?

Thanks.

Thanks,

My taxonomies are all translated as far as I can see. Doing some testing, it seems like Cornerstone displays the taxonomies in the language I am using in the WP Admin panel instead of the language I selected and am editing in in Cornerstone.

So if have selected German in WP-Admin as language in the WPML dropdown, and then open Cornerstone to edit a page, no matter what language I’m editing, the taxonomies are displayed in German. I’ve created a quick video demonstrating what I mean, and added the link below as secure note.

If I switch to a different language in WP-Admin before opening Cornerstone, the taxonomies are displayed in that language. I would expect Cornerstone to display the taxonomies in the language I am actively editing in Cornerstone.

Hello @Lunatic_Zorr,

I will forward this thread to our developers for further investigation.

Please bear with us.

Thank you!

You are most welcome, @Lunatic_Zorr.

Hello @ruenel, has there been any response from the developers?

Hi @Lunatic_Zorr,

Unfortunately, there is still no response on this. I will check it once again and will add here if any.

Thanks

We have to update something on our end to support the language changing in those select boxes. We should be able to get you something in a release or two. Have a great day.

Hi @tristup & @charlie

Thanks for the update! Hopefully it’ll get solved soon :smile: I’ll keep an eye out for updates :+1:

You are most welcome, @Lunatic_Zorr.

Hello @ruenel,

Sorry for reviving this thread. I’ve just added a new post, and am checking the book list and see that the latest one appears a lot bigger than the others. Is there any way to ensure they all have the same size (at least height?)

I’ve only managed to get it to be the same size by using a slider that shows at least 4 posts on page:

I’ve also noticed that sometimes, other older posts also show larger:

Hi @Lunatic_Zorr,

I would suggest you create a new thread for new topics to avoid any confusion in the future. Regarding the height issue, you can go through the following thread on a similar topic.


Please remember that the above code will work if copied as it is and doesn’t conflict with any existing style.
Please note that the code provided serves only as a guide to help you get started with custom coding on your own if there’s no option offered in our theme or the products we bundle.
We really do not provide support for custom codes, which means we can’t fix it in case it conflicts with something on your site, nor will we enhance it. Further customization should be directed to a third-party developer, or you can avail yourself of One, where we answer the questions beyond normal theme support.

If that does not resolve your problem, please create a new thread and let us know for further investigation.

Thanks

Thanks!

The code doesn’t seem to work, but no worries. Setting a max height seems to do the trick limiting the height to the same for all. For now that works. If I need further assistance I’ll open a new thread :+1:

Hello @Lunatic_Zorr,

We are glad to hear that setting a max height works. If you need any additional help or want to revisit this later, feel free to open a new thread. We will be happy to assist.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.