2015-11-20 243 views
0



现在我正在研究wordpress主题。
我正在使用themepunch的必不可少的网格插件。
当我看到帖子页面,URL是显示为 “essential_grid”
也就是说,example.com/essential_grid/postname

我想补充“组合” 的“essential_grid” 代替

我要找:
example.com/portfolio/postname
如果没有可能,
example.com/postname
(请张贴任何htaccess的,jQuery的,使用Javascript .....技巧)
请帮助我。
谢谢..


从网址中删除“essential_grid”

+0

VAR STR = “http://www.example.com/essential_grid/postname” 被删除; str.replace(“essential_grid”,“portfolio”); –

回答

0

要example.com/postname使用所必需电网

刚刚创建的名称postname和内含量至关重要 电网eneter简码页面,也可以创建自定义模板分配到 邮政名称页面,然后使用必要网格的简码,因为您需要 。

要使用必要的电网在example.com/portfolio/postname

,我可以从网址postname是立柱型组合后的样子。为此,您必须:

只需创建一个名为single-portfolio.php的自定义页面,并在其中输入 简码。

无论从两种方法essential_grid将从URL