WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i wanted to change the slug of a custom post type

so i






                 $the_query = new WP_Query(array('post_type'=>'myslug','posts_per_page'=>8));


$the_query = new WP_Query(array('post_type'=>'mynewslug','posts_per_page'=>8));

and changed

*post type in wp-admin from




now only some image thumbnails are showing up when i use

style="background-image: url(<?php echo $image_attributes[0]; ?>)

certain images show

style="background-image: url()

some have images some dont.


thumbnail on some of these has dissapeared from wp-admin editor why would some just unattach themself from the post?

share|improve this question
up vote 0 down vote accepted

I don't know what you used to change the slug in the wp-admin, a plugin perhaps?

But I'm not sure if your method will update existing database posts. And if it does the way it did is probably where something went wrong.

What exactly did you use to update your slug in the wp-admin?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.