Skip Navigation

[Resolved] Display the recommended custom post type posts to custom post type page.

This thread is resolved. Here is a description of the problem and solution.

Problem:
Display the recommended custom post type posts to custom post type page with layout

Solution:
You should create a view and add view cell to your layout in order to display the archive view with Layout.

You can find proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/display-the-recommended-custom-post-type-posts-to-custom-post-type-page/#post-916487

Relevant Documentation:

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 10 replies, has 2 voices.

Last updated by Minesh 6 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#916440

I am trying to: display the recommended custom post type post to custom post type page

Link to a page where the issue can be seen: hidden link

I expected to see: hidden link

#916463

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - could you please tell me what posts is considered as recommended posts? I mean how to identify that this is the recommended post - do you have any custom field setup for that?

Also, you want to display recommended posts set by particular user?

#916464

What posts is considered as recommended posts?
- Those custom posts from different post types with the same tags. We have 4 different custom post types Knowing girls, news blog, alumni blog and careers blog.

How to identify that this is the recommended post?
- For example the custom posts have same tags like here "learning" hidden link and hidden link so those are the latest post with learning tags.

Also, you want to display recommended posts set by particular user?
- Admin and editor

#916466

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok - I see "Recommended Posts" section at bottom of the page.

How you are displaying there - basically, you should create a view, chose your all four post types from "Content Selection" section of view and filter your post by taxonomy - tag.

More info:
=> https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/

If you do not know how to do that, could you please send me access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

I have set the next reply to private which means only you and I have access to it.

#916480

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok - could you please share a link of the page where I should add the recommended posts section. You shared following URLs:

- For example the custom posts have same tags like here "learning" <em><u>hidden link</u></em> and <em><u>hidden link</u></em> so those are the latest post with learning tags.

But I do not see above posts with the staging site. Could you please share problem URL where I should see the recommended posts section.

#916484

That will be added to all of the knowing girls custom pages.

e.g : hidden link

Yo can find the list here:
hidden link

OR dashboard > knowing girls post type.

#916487

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Well - I've created following view and added the required filters - you can adjust the loop output section as per your need - whatever things you want to display withing that section:
=> hidden link

I've added the tag "learning" to the following post:
=> hidden link

And as you can see at button of the page - its displaying all related posts to tag = learning:
=> hidden link

I've added that view to your Layout - as you can see here - the 2nd layout row:
=> hidden link

#916489

Can we make it to display like this? hidden link
also should be limit by 3.

#916498

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Could you please check now - I've added following CSS to your view's loop output section's CSS box:

.blog-similar-posts {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #ddd;
} 
.similar-post-holder {
    border: 1px solid #efefef;
    overflow: hidden;
    margin: 0 10px 20px;
}

.mk-similiar-thumbnail .image-hover-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
} 
.blog-similar-posts ul.three-cols li {
    width: 33.3%;
    float:left;
}
.blog-similar-posts ul li {
    padding: 0;
    margin: 0;
    display: inline-block;
    vertical-align: top;
}

You can adjust your style and output as per your need as its custom thing.

#916502

Thank you!

Btw, Are we able to move the recommended posts at the bottom? Same with the live? This one hidden link

#916504

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

No - I do not see a way to do that as you can see with the assigned layout - I've added the "recommended post" section at last.