Title: Update a PHP file on my site for WordPress
Last modified: June 4, 2022

---

# Update a PHP file on my site for WordPress

 *  [Frank](https://wordpress.org/support/users/phasar40/)
 * (@phasar40)
 * [4 years ago](https://wordpress.org/support/topic/need-some-advice-re-php-wordpress/)
 * I have a small php program, 3 files.
 * On my old site a file called display.php displayed information on my main page,
   and updated every 30 seconds
 * Can someone suggest a way I can get that to display on my wordpress site?
    -  This topic was modified 4 years ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not an Everything else WordPress
      topic
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fneed-some-advice-re-php-wordpress%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Alan Fuller](https://wordpress.org/support/users/alanfuller/)
 * (@alanfuller)
 * [4 years ago](https://wordpress.org/support/topic/need-some-advice-re-php-wordpress/#post-15708392)
 * Did the update happen on page, i.e the user got the change 30 seconds later without
   refreshing?
 * It would a a lot easier to advise if we could see the display.php you can link
   to a code share system like gist hub.
 * Is the display in a fixed place, e.g. header or footer, or do you want to display
   on specific pages / posts.
 * Are you a developer?
 *  Thread Starter [Frank](https://wordpress.org/support/users/phasar40/)
 * (@phasar40)
 * [4 years ago](https://wordpress.org/support/topic/need-some-advice-re-php-wordpress/#post-15708482)
 * I’m not a developer
    The code automatically refreshes every 30 seconds I want
   it to display on my landing (main) page
 *  [Alan Fuller](https://wordpress.org/support/users/alanfuller/)
 * (@alanfuller)
 * [4 years ago](https://wordpress.org/support/topic/need-some-advice-re-php-wordpress/#post-15708661)
 * > The code automatically refreshes every 30 seconds
 * How does this do it – does it include javascript? As mentioned, sharing the code
   really helps.
 * The simplest way for a non developer but you still need a touch of coding skill
   would be to create a shortcode that ‘returns’ the output of the php file.
 * This may get you started
    [https://generatewp.com/shortcodes/](https://generatewp.com/shortcodes/)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Update a PHP file on my site for WordPress’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Alan Fuller](https://wordpress.org/support/users/alanfuller/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/need-some-advice-re-php-wordpress/#post-15708661)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
