duanchou6534 2018-07-18 21:14
浏览 93
已采纳

如何在wordpress中设置自定义页面URL

Actually, I am using advance custom field plugin and I have made a repeater with three fields language, release and download (file type).

So now I have made a custom template for every post and retrieved repeater fields on it so I want that when user will click on download button then it will redirect on another page with a custom URL with post name and language both.

I need post name and language into that link then on final page

I will give the download option. Below are pages link of the post

https://subtitlesrt.com/movie-imdb/fifty-shades-freed-2018-arabic-subtitles-download-srt-%D8%AA%D8%B1%D8%AC%D9%85%D8%A9-%D8%A7%D9%81%D9%84%D8%A7%D9%85/

I have also set download page on custom page.

Let me know the right solution for it.

  • 写回答

1条回答 默认 最新

  • douyun6399 2018-07-19 02:48
    关注

    If i were you i would follow these steps.

    1. Create a new page with name of Custom download maybe
    2. create a custom template for that page
    3. in your posts when you show repeater values, use the values like a form with GET method (maybe input types can be hidden for aesthetic) and submit the form to this new page.
    4. In this page you can get the repeater field values with form and do whatever you want.

    NOTE: i suggested GET method because you said "... it will redirect on other page with a custom url .." GET method show values in url and you can index them.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 宇视监控服务器无法登录
  • ¥15 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥15 DruidDataSource一直closing
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
  • ¥50 STM32单片机传感器读取错误
  • ¥50 power BI 从Mysql服务器导入数据,但连接进去后显示表无数据