Support » Fixing WordPress » WP Gurus… I need help!

  • Resolved caryam



    I’ve got a function creating a random number: in this case placed in a variable called $number.

    I want to do an include of a .txt file in my template, but have it called with the randum number appended to the end of the file name.

    ie, if the random number = 1 then I want to include my_file1.txt, but if the random number = 2 I want to include my_file2.txt

    I know how to do an include with a static file name, but am having trouble with the nuances of appending the random number.

    Any help would be greatly appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP Gurus… I need help!’ is closed to new replies.