2015-11-20 73 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