I am importing a large DB from an Excel spreadsheet into a wordpress DB. I was going to do it manually by creating a new table but decided to import it into the existing wordpress framework as it will allow me to change information manually in the wordpress back end.
I’m using this code.
I have a form that uploads posts to WordPress, and at the same time I can edit things like the meta data afterwards.
However using the WordPress edit_post_data works fine but a custom SQL query won’t work. I wonder why.
I would like to display the author (username) of the latest revision of a post from inside the loop.
Someone gave me this SQL code to count the number of posts (of post_type ‘mixtapes’) in the last 7 days. I tried to convert it to ‘in the last 24 hours’ as well, but it’s giving the wrong number.
I’m trying to rewrite a bit of core WordPress functionality. I’m using WordPress 3.9.2 and I consider myself an intermediate in WordPress programming.
I am trying to accomplish something somewhat simple I think. I have a menu item at the top of my page that I want to link to the latest post in a certain category. I just need to get the post ID of the latest post in the category so I can pass it to the menu. I want to do this outside of the loop and create a function in functions.php that will return the post ID. Does anyone have any suggestions on how to do this?
Update: I read that a custom rewrite rule might be overridden and drop any parameter variables, when the custom rewrite rule is used on a child/parent page/post. The post my custom rewrite rule is meant for, is not a child/parent but it is part of a custom post type. Could this be causing similar rewrite issues (dropped parameter variables)?
I’m at a loss..