Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Database pulling data produces black diamonds with ? marks

Discussion in 'Misc WordPress Requests' started by Steve Stern, Oct 8, 2017.

  1. Steve Stern

    Guest

    Reply To: Database pulling data produces black diamonds with ? marks, by Steve Stern

    nope, wp_query works on things stored in wp_posts (posts, pages, custom post types, etc.)

    In your example, try passing the title through sanitize_title

    https://codex.wordpress.org/Function_Reference/sanitize_title

    and read about the WPDB class

    https://codex.wordpress.org/Class_Reference/wpdb

    Reply To: Database pulling data produces black diamonds with ? marks
     
    #1

Share This Page

Web Hosting