Using Query In Post Type Archives

Change it from:

    'category_name' => celebrity,
    'orderby' => 1,

into

    'category_name' => 'celebrity',
    'orderby' => 'date', // or something else

Otherwise celebrity will be treated as a constant name, not a string. Also, you can’t order by 1, you have to use one of the ordering parameters.

error code: 523