Ready to get started?Download WordPress


All in One SEO Pack
Add mysql query on (1 post)

  1. shamratdewan
    Posted 11 months ago #

    Hi, how can i access database inside the function: function rewrite_title($header) as i want to keep the rewite rule for other post and also there is a custom post that runs separatly i want the title to come from a diffrent table i created within my WP DB. so basically need to run following code but the query ($wpdb var does not work.)$wpdb->get_results("SELECT * FROM table_name WHERE id='".$_GET[car_id]."'"

    the code will give me the text with which i want to overwite $title in certain cases



You must log in to post.

About this Plugin

About this Topic