Why is my archive page looping through all but one post?
I’ve created an archive page for my custom posts, it loops through every one except the first. There is 11 posts overall and I only get 10 on the archive page.
I’ve created an archive page for my custom posts, it loops through every one except the first. There is 11 posts overall and I only get 10 on the archive page.
Permalink to products and post of my website getting 404 error. after saving the permalink type in Setting -> Permalink page they will work correctly. But if I refresh the links they get 404 error again. Actually the links work only once.
I’ve been trying to order these exhibitions based on the end_date custom field created with Advanced Custom Fields. I’m not able to properly get this working. I need the most recent dates first. I need to also only get posts with the exhibition_status of past. For the life of me I can’t get this working and the below code is just the latest non working interation.
I’m trying to add a function on the wp_insert_comment hook. But when I try to add the comment on the post on the WP admin panel, I’m getting an internal server error. There are no errors being generated on the logs.
I’m creating a short code that shows both first and last name of the user if he’s logged in, or, if he’s logged in, but hasn’t configured any name, it will return a random name with a message telling him to edit his profile.
I’m succeeding into getting the names, but not into showing the text that should appear in case the user has no name. The code:
Hi there I’m having troubles with some shortcode because it’s result appears above the page content when it should appears instead the place where the shortcode is placed.
This is the shortcode code…
Thanks for taking the time to read this. I’ve been struggling with a meta_query for an events site I’m working on.
I have seen this question asked a bunch but nothing seems to work. I have a simple metabox within a CPT that needs to save two values. It needs to save a dropdown of pages and a url text field. I can get the text field to save and display but not the drop down. My class is being called on initialization. I think it has something to do with the $dropdown_args variable but I’m not too sure. I can see it saving in my database but it just doesn’t display the selection after saving. The description metabox saves and displays fine, it’s the landing page one that needs help. I have posted all my code and any help will be greatly appreciated.
I am developing my first WordPress theme. I’ve created a custom page for a specific post category, and I would like to display all the posts from this specific category on the page.
I’ve finally managed to upgrade a WP site from v5.0 to v5.4. The only issue left is when I create an empty functions.php file I get 500 error.