I’m trying to use the function get_the_tags() from outside the ‘loop’. I understand this can be achieved by using the post ID like get_the_tags($postID). Does anyone know how I...
I am trying to join an array of post IDs together. Right now, it seems my code is creating a separate array for each ID, instead of one array...
I would like the create a link that point to the comment part. So when reader click on my link, it will scroll down to the place that they...
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(...
I’m trying to create a simple registration process which goes like this, A visitor clicks on a link (which is viewable only after entering some information such as name,...
You can retrieve a category archive by using a URL scheme like https://example.com/?cat=123. This even works if pretty permalinks are enabled. What is the equivalent query string for tags?...
Hi I want to get the post ID from the post selected in the insert/edit link button. I would normally do: <a data-id="<?php echo $post->ID; ?>" href="https://wordpress.stackexchange.com/questions/256062/<?php the_permalink();?>"> Sample...
i use the code explained here to get id of attached images to a post in a custom post type from $value that contains url of image (images already...
I have a question in regards to a WordPress plugin (Bookly) that creates a Staff ID for an already created WordPress user, and hopefully, somebody may be able to...
I want to retrieve the content with the specific ID via ajax post method. For instance, if I click a link tag which has a specific post ID, the...