WordPress: Retrieve data from plugin and display it

I’m new to WordPress and somewhat struggling to find out where to actually put my site’s functionality (i.e. something like retrieving data from database).

After doing some research I came to the conclusion that a good approach would be to put the code into a functionality plugin. The plugin would call a java backend which then returns the neccessary data.

Read More

Problem now is that I don’t know what would be a good way to actually get the data which the plugin retrieves and display it using some display logic in the theme’s php files.

I came across hooks, problem is that the action hook does not return anything, and the filter hook does not seem to be designed for that purpose.

Related posts

1 comment

  1. Increase your upload size by following the directions on the 1&1 helpcenter.

    1. Open cPanel
    2. Go to file manger
    3. Browse to the www directory
    4. Create a file named php.ini
    5. Add the lines add ini_set("upload_max_filesize","100M");
      ini_set("post_max_size","100M");

    Done! Please call 1&1 if you have any issues with this, they can walk you through it.

    See http://help.1and1.com/hosting-c37630/scripts-and-programming-languages-c85099/php-c37728/change-php-directives-a660257.html

Comments are closed.