I had someone edit my site a couple of years ago and they messed things up, but Im only experiencing the problems now.
For some reason, they changed every post to a custom ‘blog’ type and removed ‘Posts’ from the admin menu.
As you can see in the image:
Someone on Reddit helped me find a handy plugin to change the post type from ‘blog’ back to ‘post’.
But I have the problem that once they are changed back to post I can’t find them, because ‘Post’ is not in the admin menu.
Could anyone help me figure out how to add posts back to the menu?
I had a look in functions.php and found this, Im not sure if its relevant:
\——————————————————————————————————-
function true\_load\_posts()
{
if($\_POST\[‘query’\]==’blog’){
$args = unserialize(stripslashes($\_POST\[‘query’\]));
​
​
$args\[‘post\_status’\] = ‘publish’;
$args\[‘posts\_per\_page’\] = $\_POST\[‘posts\_per\_page’\];
​
// usually better to use WP\_Query, but not here
query\_posts($args);
// if there are posts
if (have\_posts()) :
​
// start a loop
while (have\_posts()): the\_post();
​
get\_template\_part(‘loop-templates/content’, ‘blog’);
​
endwhile;
wp\_reset\_postdata();
understrap\_pagination();
​
​
endif;
}elseif ($\_POST\[‘query’\]==’search’){
$args = json\_decode( stripslashes( $\_POST\[‘query’\] ), true );
​
​
$args\[‘post\_status’\] = ‘publish’;
$args\[‘posts\_per\_page’\] = $\_POST\[‘posts\_per\_page’\];
​
// usually better to use WP\_Query, but not here
query\_posts($args);
// if there are posts
if (have\_posts()) :
​
// start a loop
while (have\_posts()): the\_post();
​
get\_template\_part(‘loop-templates/content’, ‘search’);
​
endwhile;
wp\_reset\_postdata();
understrap\_pagination();
​
​
endif;
}
​
die();
}
\——————————————————————————————————-
Thanks for any help!!!
[ad_2]
Hey there,
Ideally you would need to reverse engineer what the developer has done and this may include installing a fresh version of WordPress onto the server.
With another theme active, do posts return?