Questions tagged [id]
A unique identifier.
302
questions
1
vote
0
answers
17
views
How to make search by ID work on front-end?
we created a website where people can post lonely hearts ads. For now we only have a Dutch version available but the idea is to expand to other countries too. It's a great market, and fun to do. But I ...
0
votes
2
answers
33
views
category id (term_id) in url instead of slug
For a certain Wordpress shop with woocommerce we need the url to display the category id (term_id) instead of the normal slug with the category name. So instead of www.website.com/categoryname/ it ...
1
vote
1
answer
119
views
Wordpress post-template null warnings
I am getting these PHP8.0 Warnings from my WordPress site. The warnings are pointing to core code, not anything custom. When I turn debugging on there are no error messages on the site. I also checked ...
0
votes
0
answers
132
views
Getting the correct post ID in Wordpress query loop
I'm trying to add custom field values inside a Wordpress query loop, so that I can have a list of titles, excerpts, and extras like start ratings in the loop results. I want to use something like echo ...
0
votes
1
answer
24
views
How is better to store at DB 1-side relationsip from CPT to many Taxonomies Terms ID's?
Wordpress (with plugin for Custom Fields stored at DB Custom table like Pods/MetaBox/JetEngine/etc)
Logic:
Custom Post Type (CPT) witch data will be stored at database Custom Table.
Custom Taxonomy ...
0
votes
2
answers
130
views
large number (bigint) for post ID issue in database
the ID of my latest post is 796978707878960002.
I manually created it using the code below:
wp_insert_post(array(
'import_id' => 796978707878960002,
'post_title' => '-test'
));
Now, ...
0
votes
1
answer
166
views
How to get post ID after removing that post?
Is it possible to get WordPress post ID after removing that post? I have found out that I need that ID to remove the page from the site map, but I do not have the post ID, becuase I have deleted it. ...
0
votes
1
answer
37
views
after refresh the id that shows correct in first time click, changes to 1
I made a like post type for another post type called recipe that user can toggle for like and getting back the like.
I have to get the latest like id of specific single recipe when cliked on in data-...
0
votes
1
answer
23
views
Can I provide a user's user_ID to them and can it also be searchable in a member's directory
We would like a user (student) to have a student ID that they can quote and this stays with them as they learn with us.
When they create a profile, by registering on our site is it possible to provide ...
0
votes
1
answer
67
views
Set a minimal number for next user_id
I have a WordPress website with 111 users, I have to import +45000 users who had a predefined user_id starting from 31800001 to 32200905.
I know that I can import and set their user_id to their, ...
0
votes
1
answer
50
views
What is $post->ID
I was going through the following code
'post__not_in' => array($post->ID) but I am unable to understand this.
What information does this supply $post->ID
0
votes
1
answer
288
views
Can I Get User ID at Login?
My goal is to allow my users to select their choice of redirect page after login but it doesn't seem that the user ID is available after login?
Here is my code. Any help is GREATLY appreciated!!!
...
0
votes
0
answers
34
views
Why is my insert row only inserting the final row from the loop into the database rather than just inserting one
<?php
session_start();
if(is_user_logged_in()) {
global $wpdb;
$id = get_current_user_id();
$recoveryID = null;
// $results = $wpdb->get_results('SELECT * FROM ...
0
votes
0
answers
201
views
How to get Previous Visited Page Information
I want to Change for Customized my Contact Form based on Previous URL Visited or We ca say I want to Dynamically Change the Values of Contact Form based on Previous URL Visited.
So I had searched and ...
0
votes
1
answer
975
views
get_the_ID() in the footer returns wrong value
I'm using get_the_ID() in footer.php but it returns a wrong value.
It might come from any of the plugin which is altering The Loop without resetting it after with wp_reset_postdata() as mentioned in $...