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.

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

报告相同问题?

悬赏问题

  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大