Support » Plugin: All in One SEO Pack » Add mysql query on

  • shamratdewan


    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

  • The topic ‘Add mysql query on’ is closed to new replies.