Skip to main content
Best answer

Replace part of a url with new post id


lmarins
Forum|alt.badge.img

I’m looking to replace part of a url with a new id that will come through a field in a google sheet. 

The url roughly looks like this: example.com/wp-admin/post.php?post=15038&action=edit and I’m looking to replace that post id with a different one.

Is there a way to do this with text formatter? 

Best answer by Troy TessaloneBest answer by Troy Tessalone

Hi @lmarins 

Good question.

Is the value you are trying to replace in the URL static or dynamic (changing)?

If the value is static, then you can use Formatter > Text > Replace

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

2 replies

Troy Tessalone
Forum|alt.badge.img+14
  • Zapier Expert
  • 31123 replies
  • Answer
  • March 8, 2023

Hi @lmarins 

Good question.

Is the value you are trying to replace in the URL static or dynamic (changing)?

If the value is static, then you can use Formatter > Text > Replace


lmarins
Forum|alt.badge.img
  • Author
  • Beginner
  • 5 replies
  • March 8, 2023

@Troy Tessalone oh yes that worked thank you!