Wordpress Discussion

Out of context: Reply #50

  • Started
  • Last post
  • 174 Responses
  • Nathan_Adams0

    @slinky

    If it's just one translation, I'd use ACF to create a second content field on each page/post (and a duplicate of any other custom field you've added).

    Load up both in the page template, each wrapped in a div (say <div class="english">English Content</div><div class="spanish">Spanish Content</div>, set them both to display:none. Then make a small nav to switch between the two, using javascript to make which ever language is selected visible.

View thread