I have here my if else statement <?php if (empty($posts)): ?> <h1 style="text-align: center; margin-top: 20px;">No posts in the database.</h1> <?php else: ?> and its looking if there are posts in the database and if its showing and if not its says no posts… but somehow its saying no post but there are post and ..
Here is the page screenshot, I want to remove the ID from the url which is coming just after the slug But if I’m not using that ID I didn’t get any details regarding that blog. How will I do that… Please help me Sourc..
I try to make a post to publish and I have the post_functio.php file and I get an error when trying to publish in 29 my $sql is not defined, it worked yesterday : ( <?php // Post variables $post_id = 0; $isEditingPost = false; $published = 0; $title = ""; $post_slug = ""; $body ..
When one of my blog post is "Stick to the top of the blog", it shouldn’t show on my latest post carousel. Because it will show up 2 times, one in "Stick to the top of the blog" and 1 in "latest posts". So if it’s "Stick to the top of the blog" remove it ..
I Downloaded a php blog template and i tried opening the admin/dashboard but i keep getting this message Cannot Establish A Secure Connection To The Host Server At The Moment! I checked the db.php but everything seems fine error img1 Sourc..
I am creating a Blog in wordpress. I have a list of categories: Technology, Art, fashion, Home, Lifetime, Education, Business, Religion, Design and home, Marketing In which some of these categories I am using only in Custom Post Type (Technology, Art, Fashion) and others only in Normal Posts (Home, Life, Education, Business, Religion, Design and ..
Okay, So I am new to this and have very little experience my username is zero for a reason, Now let’s get to the point. I am working on a site and want to create a specific design for my wordpress blog post’s template I want the posts to look like this https://wireframe.cc/FCDzfT Now I ..
I am working to create a Blog page, I want to retrieve data from database using php. I have created 2 pages: Blogs Page Preview Page Blog page is used to retrieve all data from the database and display only Title and Concept of the blog. After the concept there is a button to view ..
I’m running Code snippets plugin on WordPress. I want to be able to include Google Tag Manager on only one specific post in my blog. This is because I only care about the outbound events showing up in Analytics for one specific post, and I don’t want GTM to slow down every other page or ..
Am working on a laravel blog project whereby If I delete a category, I want all posts of this category moved to ‘Uncategorized’ Category. if post belongs the deleted category and other categories also then avoid moving that post to uncategorized else move the post to uncategorized. I am using many to many relationship for ..