saving in wp_posts how??
-
I have hosted wordpress locally in WAMP in my system. I find that one PHP file calls many other PHP files just to load the home page. So, I find it difficult to understand which part of the html page is generated from which php file.
I want to know the name of the PHP file from which the search bar in the upper left corner of the home page is generated.
I want to know the name PHP file saves the new blog submitted by the user into the wp_posts table. And also, which PHP file updates the wp-postmeta table accordingly???
I have no knowledge about PHP. So, please help…
-
I want to know the name of the PHP file from which the search bar in the upper left corner of the home page is generated.
Probably searchform.php. If that file is not present in your theme, then
<?php get_search_form();?>will call the default search form from WordPress core. You can over-ride this by creating your own searchform.php template file.Its present in my theme. Which file saves the blogs into the database??
That’s part of WordPress core and shouldn’t be touched. Why do you need to know?
There are certain modifications that I have to make as part of my project. Whenever a user submits a blog, two programs have to be invoked.
Program 1: user rating
This program has to increment a field called “expert_points” in the “wp_usermeta” table by 2.
** I created the “expert_points” field.Program 2: Creating RDF
This program has to save the title, keywords and the author’s ID in a file in RDF format.To do these, I have to first find out which PHP file in invoked when a user submits a blog.
Also, where should I put the new programs so that they will update the database properly?? Should it be inside wp-content\themes\twentyeleven??
VJ.
This kind of additional functionality is best provided via 1 or more plugins. It might be worth searching first to see if there are any existing plugins that meet (or come close to) your specifications. with luck, you might be able to hack some existing plugins rather than re-inventing the wheel. Other than that, I’d suggest that you start with Writing_a_Plugin.
I am not doing it on a large scale. I just have to do this for my college project. I want to finish this with the minimum amount of tweaking or coding.
I find it difficult because I dont know PHP. If there is an easy way, it will be helpful.
The scale does not matter. This is still best handled via plugins.
okay… thanks a lot…
The topic ‘saving in wp_posts how??’ is closed to new replies.