Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
0 votes
1 answer
14 views

WordPress Animation Adjustments

I have a problem with my WordPress animations. https://cyals.com is the website Currently developing. I Use Elementor Page Builder to build my page. a man and a woman load with animations one by one ...
Dewruwan's user avatar
1 vote
0 answers
80 views

Serve specific "template" page at any URL that ends in its slug

Still new to WordPress, so please go easy on me. Goal: Prevent users of a specific role from viewing other custom post types made by users of same role. Intended solution: Modify the URL and redirect ...
Ryan Cochran's user avatar
0 votes
0 answers
34 views

I want to add another search box on posts page in dashboard

There is already a search box in wordpress dashboard for posts, products, pages etc. in their listing page. My client use wordpress admin with their phone so he requested another search box on top of ...
Alper Gürel's user avatar
0 votes
1 answer
240 views

Cover block always has margin

I'm working on a website where I want to have some group blocks where I want to add some images of patterns to just make the website a bit nicer than just plain colors. I'm using a cover block to hold ...
BRHSM's user avatar
  • 101
0 votes
1 answer
1k views

How to show ACF fields in Gridbuilder custom block

I'm using GridBuilder WP (great plugin, average support) to show a grid of a custom post type. Ultimately, I need to show an ACF taxonomy field, and their support have recommended using one of their ...
clayRay's user avatar
  • 135
0 votes
1 answer
497 views

Website jumps to top when scrolling down

I have a problem with one of my customers pages. When I click a link on the website or when I refresh the page, it automatically jumps back to the top when I immediately start scrolling. If I wait for ...
Advertman's user avatar
0 votes
0 answers
115 views

Adding data to User profile

Some plugins for wordpress add fields to the users profile. For example "Company" or "Store" or "Group". How can I add the values to this fields from a custom a frontend ...
Menni's user avatar
  • 1
0 votes
0 answers
168 views

How to sort WP_Query by a custom text field (written as a date dd/mm/yyyy)

I have an ACF text field for a CPT that is holding a date in DD/MM/YYYY format (it's a text field and not a datepicker field as the data was imported from a CSV file). My Wordpress loop then sorts by ...
CuCo's user avatar
  • 3
0 votes
1 answer
41 views

update_post_meta

I am trying to update a custom field for a custom post type with this function php add_action('wp_ajax_updatemeta', 'toggle_task_status'); add_action('wp_ajax_nopriv_updatemeta', 'toggle_task_status');...
Ahmed Zidan's user avatar
0 votes
0 answers
54 views

How to backup just pages from my site, but not posts with other post_type values

I want to backup just pages from my site, but not posts with other post_type values, so my first question is – will this do the trick? enter cPanel phpMyAdmin filter the table wp_posts for post_type=...
Dark's user avatar
  • 101
0 votes
1 answer
64 views

How to store the third party script with HTML code in the wordpress custom input field?

I have created a custom field on my custom post. Below is the code I am using for the custom field. <?php function wpt_add_thirdpartyvideo_metaboxes() { add_meta_box( '...
Naren Verma's user avatar
1 vote
1 answer
259 views

Change the slug of a particular page every x hours

Is it possible to rewrite the slug of a particular page (e.g. Page-ID 123) with a wordpress function? I found this somewhere but It doesnt work and I am also looking to simplify it as I just want to ...
JoaMika's user avatar
  • 698
1 vote
0 answers
354 views

Strange issue saving custom field data for a WooCommerce order

I have an issue with WordPress update_post_meta() function. So I have made a custom input field for WooCommerce orders which hold Tracking number. Most of the time everything is running smooth and I ...
John McClane's user avatar
0 votes
2 answers
429 views

List custom queried terms in the edit-tags.php?taxonomy page

This is my first time posting a question here. I have this problem that I feel that I am soooo close to solve, but can't manage to do it. I have a custom taxonomy called "aplication" and ...
jbmgil's user avatar
  • 11
0 votes
1 answer
1k views

User query - getting values for custom meta keys/fields

I am beginner at customizing wordpress but have some experience in PHP coding. I'm struggling to figure out how to display all existing meta keys (custom fields defined by ACF) for all users that have ...
Vesna Mačković's user avatar
0 votes
1 answer
1k views

ACF: How to get users with a ACF flexible content subfield with a specific value AND layout?

I am looking for a way to query users based on a user meta entry for an advanced custom field which has a given value and itself is from a given layout type. For example, let's say I have the ...
David Wolf's user avatar
0 votes
0 answers
694 views

Permanently deleted posts still exist

So, I deleted multiple post of type page (sent them to trash, went to trash and permanently deleted them), but one of my functions didn't work like it was supposed to so I went and investigated, it ...
zoltankundi's user avatar
0 votes
1 answer
51 views

Custom Post Meta from custom metaboxes is randomly being deleted

For a while now I've been applying and updating some custom metaboxes that my company re-uses on different sites. (Not the same metaboxes, but the same methodology.) Essentially it allows for the '...
Tony Djukic's user avatar
  • 2,259
0 votes
2 answers
594 views

First archive page with a few posts

I'm looking for a way on how to display only a few posts on a first page of my archive. This is my archive template — page-archive.php, which I am using as a template to display all my posts/recipes: &...
Alex Osipov's user avatar
0 votes
1 answer
191 views

ACF: How to query for a given value count of an array like field? (e.g.: How many rows has a `flexible_content` field?)

How can I write a WordPress meta query that gives me an array of users/posts that have a given amount of entries in a custom field that stores multiple values? Something like SQL COUNT(), but for the ...
David Wolf's user avatar
0 votes
1 answer
41 views

Custom fields array to display it monthly

I have an array structure from custom fields inside custom post type like the following: Array ( [webw_employee_projects] => Array ( [January] => 0 [February]...
Walled Mahmoud Soliman's user avatar
2 votes
1 answer
4k views

ACF: How to get the full field name (meta_key) by a field key?

In Advanced Custom Fields: Which function can I use to get the full meta key of a field by its field key? So, if I have a field with the name some_field and the field key field_sd54hfs5df: How do I ...
David Wolf's user avatar
0 votes
0 answers
175 views

Expire Date Condition not Working ACF WordPress

I am trying to Add the Condition if Expire date is smaller than the current date expired in the post. But the condition not working please check the code below. <?php if (!empty($apply_from)) { ...
stepiadm's user avatar
0 votes
1 answer
170 views

Order category posts by last word of custom field

I'm trying to order a category page by the last word of a custom field that all of its posts have. The custom field represents a name, so the last word would be the last name. In the end, the posts of ...
ayyyT5's user avatar
  • 3
1 vote
0 answers
301 views

Calling the "wp-link-wrap" pop-up modal

When using the ACF, I noticed that the "Select Link" button calls a native modal called "wp-link-wrap". How can I call/access this modal without ACF?
G Chen Sin's user avatar
-1 votes
1 answer
602 views

Wordpress pagination returns the same posts

I did search the other posts here related to this problem, and tried all of them in my case, but I can't seem to make it work (probably because I don't know enough code) Can you please help me with ...
vyperlook's user avatar
  • 177
0 votes
0 answers
17 views

My worpress search page is showing no results

I want to display the publications searched for via searchform.php in the search.php page but it does not work ... The search is done well when I look at the url (ex: New World): http://localhost/?...
Maximus's user avatar
0 votes
2 answers
125 views

hide specific div on single.php [closed]

I've been working on WP since a week so far i've seen bunch of tutorials and videos about wp but i feel stuck and since i'm a wp noob i cant find or think any solution for a simple problem. i have ...
wp_noob's user avatar
  • 11
0 votes
0 answers
26 views

Create a List of Widgets, where each widget holds three attributes

i have a specific wordpress page, in which I want to add expandable items. So the item has a keyword and when I press it, it expands and more specific text will show up. The styling and setup of such ...
Pokenius's user avatar
0 votes
0 answers
133 views

How can I add diffrent editable text fields?

I am new to Wordpress development and created my own theme in php. My problem is, that I don´t realy know how to achieve the following: The website has diffrent areas, where custom text shall appear. ...
Pokenius's user avatar
0 votes
1 answer
327 views

A function to get the content of a page

I have an Elementor page and I need to get the HTML and CSS output of it without the header and footer to use in an email plugin I am making. Is there a function in WordPress that can do this? I've ...
Maytha8's user avatar
  • 121
2 votes
0 answers
1k views

Print custom field in Query Loop block

I have added a custom field with the Advanced Custom Fields plugin. I can print the content of the field on the post itself using the acf shortcode ([acf field="date"]) without issues. ...
Gabriel Smoljar's user avatar
0 votes
1 answer
185 views

Edit post & page option does not display on latest wordpress

I am not able to edit the WordPress default posts/pages from front-end. I have tried to deactivate all plugins, check/uncheck toolbar option(from profile) and also wp_footer() function in the file. ...
Maharshi Gadhavi's user avatar
0 votes
1 answer
30 views

Listing posts with a value in a custom field

I read several posts and stack exchange answers but still cannot put the code together to work. I read the post Query posts by custom fields I have posts with custom fields, lets say "publisher&...
Hanan Cohen's user avatar
1 vote
1 answer
359 views

How To Fix WP Query Returns Results But Shouldn't?

I have a WP Query that should return no results, but instead seems to be returning items. I'm guessing the null result is being interpreted as "return all results" but I'm not sure the ...
opendatum's user avatar
0 votes
1 answer
957 views

Custom Taxonomy Search result page

I have a post type named Icons, I have a custom taxonomy named Icons Pack which have a custom field for featured image. Also I have a search form in my site for users to search for the icons they want ...
Naderjlyr's user avatar
0 votes
0 answers
214 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 ...
Bhargav Joshi's user avatar
0 votes
1 answer
662 views

How to dynamically parse and transform post/page content before displaying it?

I have several posts where part of the displayed content will depend on several conditions. I am thinking on creating a custom html tag. Then, before displaying the post content, the conditions will ...
ChiPlusPlus's user avatar
0 votes
1 answer
286 views

Show only pages you are author of

I am trying to only show pages that a user is the author of for any role other than administrator. The code below seems to put the site in an infinite loop and it ultimately dies. add_action( 'load-...
Waterfall's user avatar
  • 105
0 votes
0 answers
20 views

Add a custom field to my custom post type and then get posts which are before the given date in the custom field

Hi all "Want to do it without plugin" Firstly how can I create a custom field in my custom post type where I can get the date // Our custom post type function function create_posttype() { ...
Deep's user avatar
  • 1
0 votes
0 answers
169 views

Copy/paste local images not working in Wordpress

This is somehow frustrating. I am ussing the latest version of Wordpress I am running my webpage, and when I need to copy-paste an image from Internet into any of my posts/pages I have no problem. ...
antecessor's user avatar
0 votes
1 answer
55 views

Delete user meta but only if found in array

I created a SAVE button that saves a page's URL to the user meta in an array. I'm trying to now create a REMOVE button but I'm finding that when delete_user_meta is used it deletes all entries in the ...
Jayce's user avatar
  • 3
0 votes
1 answer
767 views

Automatically redirect a page to a category that share the same slug

This question shows me how to redirect a category to a page that share the same slug, but how would I redirect a page to a category with the same slug? e.g. abc.com/slug ---> abc.com/category/sub/...
Pete's user avatar
  • 1,048
0 votes
0 answers
194 views

Can't find the page that is using a slug

I am using Wordpress test site and working on a page where I can display Team members. At some point I was working on two Team pages at the same time, just to compare which style I liked more. Along ...
heleri's user avatar
  • 1
0 votes
0 answers
47 views

Use get_pages() before another plugin modifies it

In my little plugin I am using get_pages() to get some specific pages. Important is the usage of "child_of" and a custom field key. $pages = get_pages([ 'child_of' => 206, //Gets ...
Timo's user avatar
  • 1
1 vote
0 answers
62 views

What is the recommended / best way to do this: Event calendar post/type in a block-based theme?

my question is this: assume I have a php-themed WordPress site with an event calendar page template that's using post type "event", which in turn has a lot of custom fields that hold the ...
yms's user avatar
  • 35
0 votes
1 answer
55 views

How do I attach a page to a category similar to how we attach media to a post?

Is it possible/how do I to attach a page to a category similar to how we attach media to a post? ps. I'm not asking how to assign a category to a page. update: I need to attach a specific page ...
Pete's user avatar
  • 1,048
0 votes
0 answers
27 views

Automatic duplicate/copy of post to a related page in WordPress

I have a website about introducing softwares and apps. I created pages and so menus (named by categories). I set my WordPress setting homepage to latest posts. I create posts and give them categories ...
asad's user avatar
  • 113
1 vote
1 answer
743 views

Get posts for which a custom field is not present, with get_posts

I'd like to get all posts for which the custom field hidden is NOT present. This does not work: $postsForSitemap = get_posts(array( 'numberposts' => -1, 'orderby' => 'modified', '...
Basj's user avatar
  • 85
0 votes
1 answer
71 views

get posts based on non-single metadata

I have meta data to custom post "event", registered as non-single, i.e., there is an array od metadata "terms" (it is not WordPress term, I just call it term, it is a record ...
Lovor's user avatar
  • 986

1
5 6
7
8 9
125