I have a template which outputs the blog posts (Blog Page), I open one of the posts which use single.php template, Now how can I get the ID of it's parent which is the (Blog Page)?
I should say that I ...
I have a menu name Social Network. I want to get the menus ID. I tried the following, but didn't succeed.
global $wpdb;
$menu_slug = 'social-network';
$menu_id = $wpdb->get_results(
"
SELECT TERM_ID
...
I am trying to add a custom coloumn to post quick edit and everything is almost working. Custom meta is saved and passed but if I click on quick edit the preview is blank.
This is the error it gives me:
Notice: ...
I'm wondering if there's any way to configure WordPress to assign post IDs like so:
Pages ID range: 10000 to 19999Posts ID range: 20000 to 29999Custom post type 'A' ID range: 30000 - 39999Custom post type 'B' ID ...
I use the add_menu_page function in my custom theme builds but when I export my local copy of the site and import it in the production site some of post id numbers change and I have to update this function ...
I have a blog index page which only lists 1 custom post at a time on the index page (it is paginated). I am trying to get the ID of that post from outside the loop (in the footer, after ...
I have a variable that contains the slug of a category. With that slug I want to create a link to the archive page that displays all the posts in that specific category. What is the best or fastest way ...
On my site, I'm generating SKU's (unique ids) for each product. I don't use Whoocomerce, instead I have post type product for a different purpose. I'm using this function below to generate the ID's and I would like to know, ...
I have my cart page working fine, but I need each item to have a class with its id or category (because I need to add some css only to certain products). Is this possible?
Thank you.