php
How to get a list of all possible values of a specific user meta key?
I have set up my posts with bookmarks where the user’s meta will be updated with the post ID of the post they are bookmarking. They are stored in user meta key my-bookmarks as an array.
WordPress sorting posts by date and title using a dropdown
I’m trying to set up a dropdown that would sort my posts by Newest to oldest and Alphabetical.
This is what I have so far:
Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)
I’m using Advanced Custom Fields and I’m trying to show a custom field below the single post. I managed to get the code to render below the post, but when I set the field movie_actors and save, the entire page goes blank after I refresh it, it doesn’t show any errors on the screen although I already have debug mode enabled.
My field is set as User Object inside ACF, and the field type is user.
What I’m trying to do is to show a link to the user profile in Ultimate Member. I also tried to show a link to the default wordpress user profile just in case, and it also gives me the same result.
getting url from variable that calls picture of current page, not working. Only displays everything instead of url
I am trying to echo an image to the background like so
how can i show only the parents in owl-carousel?
I have this code that shows all the posts in my post type (parents and children). the php is:
Posts title instead of Pages and Category titles – PHP WordPress
In order to have two blogs on one website, I was able to put in the menu two categories: DOCUMENTATION and ACTUALITES.
My problem is in the header. The titles are displayed well however for both categories, the titles correspond to the title of the last article of the page…
You can see an example in the picture (You will see that the CONTACT page is OK but for the DOCUMENTATION and ACTUALITES pages the titles are those of the last article).
I would like to replace these article titles with those of the DOCUMENTATION and ACTUALITES categories.
I think I have found the problem code but I don’t know how to solve it.
Use post ID in functions.php file adminside
For a functions I need the post ID in my functions.php file.
I must have the ID if the editpage is active.
Block error message in foreach loop when looping through ACF field
I have 2 Custom Post Types (created with CPT UI and ACF) “Global” and “Personal”. The idea is for the user to reference a “global” post by displaying the image (linked) of that global post in the “personal” post that they’re creating.
AWS Lightsail WordPress – connect to database on instance using mysqli
I have a wordpress website hosted on AWS Lightsail. On that website, I would like to use a shortcode to retrieve data from a database using mysqli. However, everytime the script that connects to the database is executed, I receive a connection error. The database is on the same AWS Lightsail instance.
I was wondering if I need to establish an SSH-tunnel because this is also needed if I connect to phpmyadmin. But since the script is executed on the server itself this does not really makes sense in my understanding. I have used the exact same code on a local host and it worked perfectly fine. What am I missing here?
