Copy content stored in meta to post content
I’m working on a site that had an existing theme that used meta fields to store blocks (bad practice IMO but pre-block editor).
Given script X Y and Z how would I get the list in PHP of X Y Z and their dependencies?
I have a filter that’s being applied, but I can’t find a corresponding call to add_filter(). Is there any other way it could be added?
I have an issue, I’m creating classified website,
so I have a login and a registration form and users can post their own adverts.
I’m busy with a WordPress theme and in some templates I use images (like home.php). I do the calculations for the srcset and sizes for every template/image individually and store the urls and values in variables.
For each user on my site I store a birthday using ACF date field (stored as YYYYMMDD).
Is there a way to construct a meta query to retrive all users that their birthday on that specific month regardless of the year?
I have a shortcode that prints a simple form, a button is used to submit the form. The problem is that when it’s pressed, the form gets submitted normally, ignoring the js function. I can’t understand why it’s doing this, since trying this locally on XAMPP works (I needed to change something to adapt the js code to WP, but nothing that should change its behavior.
As you might know, the discussion about wp_version_check() and update.php has been a hot topic for give or take a decade.
Let’s say my custom post type is ‘story’.
I’ve got 20 stories published on my site.
So each post becomes: ‘story 1’, ‘story 2’, … ‘story 20’.
Thus, first post is ‘story 1’, and last post is ‘story 20’.
Now when I open one of these custom posts, I want to see the number. Example, if I open the ninth (published) post I want to see it mentions ‘story 9’.
I don’t want to hardcode it which I can do using ACF plugin. I want that data to be generated dynamically, just like how wordpress dynamically generates post id or slug.
I’m working on a site that had an existing theme that used meta fields to store blocks (bad practice IMO but pre-block editor).
I am trying to display the categories name on my page but it’s not displaying. I am using the below code and I added the shortcode gridCategories on my page. I am getting only array