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 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器