Skip to content

Instantly share code, notes, and snippets.

@hxgdzyuyi
Created December 5, 2012 16:16
Show Gist options
  • Save hxgdzyuyi/4217040 to your computer and use it in GitHub Desktop.
Save hxgdzyuyi/4217040 to your computer and use it in GitHub Desktop.
  1. 新建文章,添加到具体分类
  2. 文章选一个特色图像。特色图像左边有个一个放media的地方, 下拉默认为embed,改成modal。 url贴入视频地址
  3. 在需要的自定义页面插入porfolio代码 【不包括注释,像gallery那样】
  • 其中category的id 在分类管理的地方 你可以鼠标移动到分类上面然后看chrome左下角的url。 其中tag_id变量后面的数字就是category的id
[portfolio count="3" category="id"]
[portfolio 
	count="2" // column count is an integer
	category="3" // one category id or more for example "1,2,3" 
	text="true" // if you use sort text is true or none, default is true
	type = "filter" // filter or pagination, default is pagination
	postperpage="12" // use only with pagination, value is an integer
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment