Skip Navigation

[Resolved] How to "pin" a publication

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 3 replies, has 2 voices.

Last updated by Mateus Getulio 1 year, 4 months ago.

Assisted by: Mateus Getulio.

Author
Posts
#2623031

Hi

I've created my "Movies" CPT. I'd like to be able display an archive page with all of them but on the top, I'd like to display 1 favorite movie. So I need to be able to flag only 1 movie to display at the top without going to all of them and uncheck a "pin " option.

How can I do that ?

Thanks for your help.

#2623049

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thanks for your contact!

You could achieve this by creating an archive template for your custom post type (Toolset -> Dashboard). Then, you would be able to add the desired publication at the top of the archive template (using a 'View' block, for example).

Another option would be the recommendation my colleague gave here: https://toolset.com/forums/topic/custom-order-for-post-types/

Please give it a try and let us know how it goes. Thank you.

Regards,
Mateus.

#2623113

That means I need to change the order number of each post when the order change.

What I'd like to achieve is to have 1 favorite "Movie" to place on the top of the page.

Maybe I need to create a new CPT "Favorite movie" in relationship with movies in 1 to 1 relation ?

#2623371

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thanks for the clarifications.

As a workaround, you could:

- add a Checkbox custom field to a field group belonging to this post, and name it as 'featured', for instance
- then, you can tick this checkbox in the desired post, so that it would be considered as a 'featured' post (like the 'feature recipe' field exemplified here: https://toolset.com/glossary/custom-fields/)
- afterwards, in your archive template, you can sort the posts using this field as a reference

Please let me know if these steps are clear to you and solve the question. Thank you.