All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

Add custom links like functionality

I want same functionality like WordPress provide for custom links but additionally I want to add some class to those links by default that is added by this feature (Other websites). I have tried to ...
0
votes
0answers
14 views

Custom meta box is not displaying value showing tag as empty

I have a created a custom meta box plugin and a function in the functions.php file to output the value on the page. The meta box seems to be working, however the input text is not being displayed on ...
0
votes
0answers
14 views

Remove pre and code tags from WordPress

WordPress has added both <pre> and <code> tags to my PHP embedded in a post. Here's an example <pre><code>register_taxonomy( 'Books', 'post', array( 'label' =&gt; __(...
0
votes
2answers
13 views

Enqueue custom css file on specific page

So I've been messing with this for a while now and I don't understand how I'm unable to pull in my style file properly by registering and calling it at all. Here is my method: public static function ...
0
votes
1answer
9 views

Custom Taxonomy Not Showing in Front-End When Outputting a Custom Post Type with WP_Query()

I have a custom post type that I'm importing into the front page of the site with WP_Query(), but I can't seem to get the custom taxonomy to show. I've placed a div in the HTML and inside this I'm ...
0
votes
0answers
10 views

Close video stick - Single Post

I'm trying to fix this problem that I have with this sticky video but I can't seem to find a solution. I have two video's on my page. One is sticky and the other sits at the top. I want the sticky ...
0
votes
1answer
6 views

Use WP_Query() to Output the 4th to 6th Most Recent Posts of a Custom Post Type

I have a front page of a site that consists of different custom post types. To achieve this I've been using the WP_Query(); function. In the example below, the query is used in a section and ...
0
votes
0answers
12 views

Is it safe and good practice to use do_shortcode to escape?

We're using Advanced Custom Fields in our company and sometimes we need to use shortcode in our custom fields. In the php code we then use the do_shortcode functions for these fields. There is no ...
0
votes
0answers
8 views

Translating a string (Russian)

I am trying to translate the following string (using po). All %%category%% %%in_location_single%% It translates just fine except that it doesn't account for a few singular feminines. in majority of ...
0
votes
0answers
19 views

How to automatically convert “normal” conditions to yoda conditions

I am working on a large WordPress Plugin. It has already more than 10'000 lines of code (PHP + Javascript) and must be changed to yoda conditions, for matching the coding standards of WordPress. Is ...
0
votes
1answer
16 views

Interrupting $html.= ' for IF statement

Hi Stack Exchange Community, I'm looking to understand how to insert an IF statement inside the code below: $html.= '<span class="cat">In <a href="'. $typeLink . '">' . $terms_string . '&...
0
votes
0answers
13 views

Target the content-entry hook using Genesis Framework

So the below code is my custom template that I'm using to hook into a genesis child theme, but I'm unable to get the styling to show up in the right position. Here is the code: <?php get_header();...
0
votes
0answers
14 views

How to bulk remove line breaks that are not made with <br> tag?

We moved a bunch of blog posts over from one old drupal site into WP. They have a lot of odd line breaks in them but I cannot find or nbsp in the html. It's like someone hit return a bunch in the ...
-1
votes
0answers
15 views

Plugin is causing issue with wordpress API & Loopback. cURL error 28

I have a plugin that's having an issue, and the developer is not responsing, (which is a bigger issue) . the problem is that it seems to be disrupting the REST API, I'm getting this error, in site-...
0
votes
1answer
16 views

I am trying to add current logged in user to my zoho chat

I am trying to get user info auto populated into the chat fields so logged in users don't have to type in their information everytime they want to chat with us. I cant seem to figure out how to make ...
0
votes
0answers
14 views

Is there any way to get a variable for $current_user password to send a post request to endpoint?

I've tried the code below but wordpress only send the hash password, so the endpoint response is 404 (not found). function identify_user() { $url = 'http://spring-app-build:8080/api/auth/login'; if (...
0
votes
1answer
13 views

Iterating through Object Array to customise display of full custom taxonomy for custom post type

I have read similar questions but I'm not getting a complete understanding of how to make this work. I have created a custom post type and for it a custom taxonomy called kernal_category. I am ...
0
votes
0answers
15 views

Translatepress taxonomy and custom post type root FIX

I'm using Translatepress. Great plugin, one exception: they haven't developed translation for taxonomies and custom post type root slugs. Does anyone know how to achieve this? Some .htaccess magic ...
0
votes
0answers
12 views

No comment Section but still got a Comment

Somebody commented on my blog article, but I dont have a Comment Section on my blog. Also my blog is in german and the comment was in english. I'm not sure how this is possible and how this could ...
0
votes
0answers
8 views

Save metabox input fields data for store locator

I'm working on a custom place/store locator for my projects. I've made this simple class prototype that for now will display a map on the pages edit screen. I need some help to understand how to ...
0
votes
0answers
20 views

wp-cli setting home and siteurl to site.tldtld (double TLD)

I'm installing Wordpress with wp-cli. The installation works without failure but it's setting siteurl and home to http://cbdhut.homehome. The command I'm running to install are: cd ${webroot} ./wp....
0
votes
0answers
10 views

How to filter result set in custom metaboxes?

I am adding a plugin that adds a custom meta box on the admin woocommerce product detail page. What this does it lists the completed orders that contain the product. I was able to successfully add ...
0
votes
0answers
14 views

Trying to create a carousel slider in WordPress with all slides visible (First slide should be big and other two small)

As the title said I'm trying to create a simple carousel slider but instead of hiding the slides in the back of the slider, I want to keep all of them visible. This slide supposed to have three slides....
0
votes
0answers
10 views

Include Framework 1.0 in Plugin A and Framework 1.1 in Plugin B. Make both use Framework 1.1

I have a Framework 1.0 version git repo which is required via composer on my main Plugin. All work fine but once I create a second plugin that will use the 1.1 version of my Framework, how can I make ...
1
vote
0answers
13 views

How to set column widths in a CPT block template?

I have a block template for a custom post type. When the WP Core column block added support for different widths, I tried setting up the template like so (I changed the post type to "post" here in ...
0
votes
0answers
9 views

Permalinks: Custom Taxonomy > Custom Post Type > Post

Most tutorials and snippets I've seen put the custom post type after the site's URL. I want to put the custom taxonomy before the custom post type in the URL. So I'd like my site to route in this ...
0
votes
0answers
4 views

Call to undefined method OrderRefund::get_billing_first_name()

When an WooCommerce order has been refunded, it seems to change object class to OrderRefund, but then it doesn't have the properties like get_billing_first_name So how can I retrieve billing first ...
0
votes
1answer
20 views

Why wp_ajax hooks doesn't work?

I need to execute the Php function from my Ajax form with the POST method. Is there another way instead of ajax hooks? Hooks doesn't execute. Always returning 0. What's wrong? Here's my ajax.js '...
0
votes
0answers
14 views

Getting ACF post_object inside wp_query

Is it possible to use the post_object field inside custom wp_query? I created a template to list all blog posts and getting different content by getting a post_format. In one of the formats, I want to ...
0
votes
1answer
21 views

URLs Added to ACF Repeater Field are not working

I have created a page using the "Advanced Custom Fields" Plugin and everything is working great except that when I add href url in the field text it doesn't show nicely on Front-end and break the ...
0
votes
1answer
28 views

Use custom template on custom post type

So I'm kinda stuck on something that I'm trying to achieve and unsure how to even target it, so below I will explain all that I have and what I have tried. So I'm using the Genesis Framework and a ...
0
votes
0answers
16 views

get used blocks in post and detect changing

in gutenberg how can I get list of used blocks in the post by javascript ? then I want whenever content of each block changed , a javascript function called. how can I do this ? wordpress gutenberg ...
0
votes
0answers
13 views

WooCommerce | AJAX | Product Pagination | Help me implement Ajax Pagination

Im struggling to find a good resource on implementing my own AJAX product pagination onto products within the WooCommerce shop loop. Please can someone guide me on how is best to load more products ...
0
votes
0answers
14 views

How to make Customer Billing Phone Number Unique Validation in Wordpress [closed]

Actually I want customers to add unique-phone numbers in the billing address of woo-commerce. I tried the below code but it is not working. Can anyone give me the correct code for unique phone ...
0
votes
0answers
14 views

Two different inner shortcode under shortcodes or multiple nesting of inner shortcodes

<div class="eternal"> <div class="one"> [shortcode]Some text 1[/shortcode] [shortcode]Some text 2[/shortcode] [shortcode]Some text 3[/shortcode] [shortcode]...
0
votes
1answer
15 views

'Simple' Reservation System

So I'm building a website where I present a list of locations people can read about and visit. Fairly simple you would say. But besides these locations, there are activities you can do at these ...
0
votes
1answer
15 views

Redirect based on parameter in url

I want to redirect my site to the correct url based on parameter. The url is passed when changing the language of the site using the language switcher. If url contains lang=de, then redirect to ...
0
votes
0answers
13 views

How to display SQL query that ran in WC_Order_Query?

Using WP_Query you can do: (new WP_Query($arguments))->request to get the raw SQL code that was executed. But how can you do this with WooCommerces WC_Order_Query or wc_get_orders?
0
votes
0answers
13 views

WordPress site that will integrate with external APIs

I would like to create an WordPress site that will integrate with external APIs and will take data by API from all the affiliates networks like https://www.offervault.com/ . Anyone can assist me and ...
0
votes
0answers
17 views

I am trying to Implement a Code that is Working in my previous page but not working in Wordpress for some reason

For some reason the Console says that the "jQuery is not Defined". And it is not working... And here is the Code: CSS: body { background-color: rgb(176,176,176) !important; } .opala { ...
0
votes
0answers
12 views

imported post image as normal image instead encoded image

i wonder if i can imported post image as normal image url instead encoded image, when i export-import posts (contains image) from one to other wordpress using wordpress importer, every post image ...
0
votes
0answers
12 views

Delete original images after resize

I've read previous questions about the argument but, it seems no one perfectly fits with my goal. I've noticed that, after uploading an image, Wordpress, correctly, creates all the thumbnail needed. ...
0
votes
0answers
9 views

Wordpress Portofolio Conditional Templating - functions php

I'm trying to load some code depending on which portfolio category i am , but cant seem to get it quite right... I've read that portfolio categories are called taxonomies, but don't know if thats ...
0
votes
2answers
34 views

do_action not working in loop

I've been using do_action to generate multiple action hooks in the loop. It seems unlucky for me the do_action not working. function ltc_generate_input_fields($fields = array()) { echo "Hello ...
0
votes
1answer
20 views

Creating custom meta box throws PHP warning error in WordPress

I am trying to create a meta box as a plugin in my WordPress test website. I am using an installed custom theme from a tutorial I am following from Udemy called, 'WordPress E-Commerce Development w/ ...
0
votes
0answers
9 views

Full file path appears on top of page after uploading file. Can I hide or disable this?

After uploading a file (via a front-end GravityForm with a file upload field), the full file path shows up on top of the page. Is there a way to disable or hide this line? I already have a custom ...
0
votes
0answers
8 views

RegExp in Yoast SEO redircts [closed]

I have the following custom permalink structures: /custom-tax/[term]/category/[term]/ /custom-tax/[term]/tag/[term]/ /custom-tax/[term]/[custom_post_type]/ Which are archives of posts in a specific ...
0
votes
1answer
16 views

Add a metabox when editing a media - but only for images

Is it possible to add a metabox for medias (attachments), but only if they are images ? I don't want this metabox on other file types. Thanks
0
votes
0answers
11 views

How i add custom post type menu in add_menu_page(under another admin menu )?

I am making a plugin which has own dashboard and some menu,so i have to create a custom post but i see my post type has own menu option so i want my custom menu in my own plugin menu.
1
vote
1answer
11 views

Filter medias from the Media Uploader (wp.media) modal with a post meta

I would like to have a media uploader modal that displays only image medias having a specific post meta, let's say 'my_image_meta'. How could I achieve this ? Here's my actual code, which just filters ...

15 30 50 per page