最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How can I post exact same post but with a few things changed? (with some sort of Automation)

programmeradmin1浏览0评论

I wanna duplicate some of my posts but want to change a few variables. For example, I would just like to make some variable in my posts that will be changed every time I give inputs. These can be links or one word changes in post title or somewhere in post. How can I do it? (see an example below where XXXX and Y are variables)

Post Title: Hello this is a sample Post with XXXX - Read now!

Body of my post:

Hey this is my post welcome, this is post with XXXX. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras dui mi, facilisis quis consequat id, blandit et enim. Nulla viverra tellus elementum ligula vulputate, vel venenatis nisi facilisis. Vivamus in mi eu ipsum molestie bibendum a sed purus. Read more here Y(link).

I wanna duplicate some of my posts but want to change a few variables. For example, I would just like to make some variable in my posts that will be changed every time I give inputs. These can be links or one word changes in post title or somewhere in post. How can I do it? (see an example below where XXXX and Y are variables)

Post Title: Hello this is a sample Post with XXXX - Read now!

Body of my post:

Hey this is my post welcome, this is post with XXXX. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras dui mi, facilisis quis consequat id, blandit et enim. Nulla viverra tellus elementum ligula vulputate, vel venenatis nisi facilisis. Vivamus in mi eu ipsum molestie bibendum a sed purus. Read more here Y(link).

Share Improve this question asked Jun 23, 2019 at 20:44 Suhaib KamranSuhaib Kamran 1
Add a comment  | 

1 Answer 1

Reset to default 2

I would do this using advanced custom fields to setup a field set with X and Y, then build a custom post template where the non-dynamic text is hard coded and us the_field(field_id) function to run a query and pull through your dynamic fields.

I'm not sure what your technical abilities are but that would be how I would do it.

发布评论

评论列表(0)

  1. 暂无评论