Automattic/jetpack

Feature request: Add filter for [portfolio]-Shortcode output

開放

#2,194 建立於 2015年6月1日

 (10 則留言) (4 個反應) (0 位負責人)PHP (877 個分叉)user submission
EnhancementGood For CommunityHacktoberfest[Feature] Custom Content Types[Type] Good First Bug

倉庫指標

星標
 (1,808 顆星)
PR 合併指標
 (平均合併 4天 5小時) (30 天內合併 645 個 PR)

描述

Hello there!

It would be nice to have a filter for the shortcode function output of [portfolio]. I was searching the jetpack plugin files, but could not find any filter.. so after Jeremy's suggestion I figured I'd open a github issue for this matter. The related wordpress.org-support thread is the following: https://wordpress.org/support/topic/customizing-jetpack-portfolio-shortcode

I'd like to control the html output of the shortcode to be able to add a div if needed or implement a custom field I might have registered for my portfolio post types. For example I set up a custom field which allows me to insert a client logo. I would like to have this client logo (added via custom field in portfolio cpt) to be displayed with the portfolio item's title. I would like to be able to control where exactly this custom field shows up and which css classes are spread out.

A filter would allow such for the [portfolio] output.

Thanks

貢獻者指南