Automattic / Automattic/jetpack

Custom Content Types: Link Testimonials to Projects

Open
#3,769 2 comments 0 reactions 0 assignees View on GitHub
[Feature] Custom Content Types Enhancement Good For Community
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

#### What I'd like

I suggest adding a way to link a specific Testimonial to a specific Project if desired. This could be done with a Tags type input field in the sidebar. In the Testimonial, start typing the name of the Project to link it to, and a pop-up "hint" would let you choose the proper Project.

Then, in the content-portfolio-single.php file, you could have an if statement that checks for a linked testimonial (or group of them) and displays it at the bottom of the content before the author box.
#### Why

Currently, I have to do this kind of stuff with Custom Fields or a plugin.

Sometimes, I want to post specific feedback about a certain project on THAT particular Project page but keep it as a custom content type that could be used and looped through on the homepage. The Testimonial on the homepage should also link through to the Project page it references.

Contributor guide

Open the contributing guide

Research direction

Start by reading content-portfolio-single.php and tracing how Testimonials and Projects are represented as custom content types. Review the requested sidebar Tags-style selection and the template’s placement before the author box. Done means a Testimonial can link to a specific Project, linked testimonials display on that Project page, and the testimonial can still be looped on the homepage.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
content, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.