Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
87 views

I created a shortcode using the code below and placed the shortcode in the post query loop, e.g. archive page. At the result, all the items in the query loop show 'bread' regardless to what category ...
FUFY's user avatar
  • 19
1 vote
1 answer
72 views

I have a wordpress site, currently locally hosted with xampp. Context Structure: Child of Twenty Twenty-Five theme (block-based, doesn't support menus in Appearance-> Menu). In the site I have a &...
Francesco Mazzini's user avatar
0 votes
1 answer
85 views

I'm creating a custom WordPress plugin that includes a contact form rendered using a shortcode. Here's my current code: function custom_contact_form() { ob_start(); ?> <form method="...
Nandini Tiruvalluri's user avatar
0 votes
1 answer
91 views

I'm building a simple WordPress plugin that fetches a random quote from an external API and displays it using a shortcode. The problem is: every time I refresh the page, the quote seems to duplicate — ...
Shailaja's user avatar
2 votes
1 answer
67 views

I have a php function which displays a leader board of all players and stats from my database, which is working as intended. I now however want to amend the function so that i can pass data to it to ...
BBLJ84's user avatar
  • 209
0 votes
0 answers
66 views

I am displaying WooCommerce products via the shortcode [product id="123"] on normal WordPress pages. The products have usually 3-5 variations. In order to display the variations I am using ...
rabox66's user avatar
  • 159
3 votes
1 answer
81 views

With help from the community, I have successfully gotten the behavior I want with variable products, but I can't seem to duplicate it on simple products. The code used is inserted into the functions....
user30495051's user avatar
1 vote
2 answers
76 views

I am using Shortcode in Wordpress also using Ninja Tables. The code is pulling from a Google Spreadsheet managed by a non-developer admin person. Generally easy. I am looking to embed this in a ...
Rodney Biddle's user avatar
-1 votes
1 answer
62 views

I'm trying to display the shortcode [products] on a new page I created. The products don't display, (but the shortcode itself doesn't show as text (as it would if it didn't render, meaning the ...
sevenkader's user avatar
1 vote
1 answer
255 views

I'm facing a problem that someone already faced but he did not receive an answer here : Elementor Loop Grid widget > post taxonomy | get_queried_object() of the taxonomy iteration To be clear, I ...
Digicem's user avatar
  • 33
0 votes
2 answers
67 views

Summarize: Woocommerce product dimensions are length, width and height Scope of this question is to create a shortcode for each product dimension property individually based on product ID. Problem: I ...
Nightmare's user avatar
0 votes
1 answer
54 views

How can I cause a link in WordPress (currently 6.7.2) to display as plain text if the target post is not published? I know how to create hyperlinks and how to create a permalink to a not-published ...
Keith Davies's user avatar
0 votes
1 answer
68 views

i'm looking for a way to extract a page number (for example site.com/match/2/), in this case the 2 but can be any number, and extract it to be used in shortcodes. I added a custom permalink which ...
Pixelhouse's user avatar
0 votes
1 answer
84 views

I'm trying to put a Polylang language switcher in PHP to appear in the header of a webpage with a shortcode. I get the switcher where I insert the shortcode, but also appears at the top of the webpage....
Ragna's user avatar
  • 3
0 votes
0 answers
78 views

I'm using the following shortcode to populate all products with sale prices: [products on_sale="true" columns="6" rows="7" title="Check our Products on Sale!"] ...
Graham Toomey's user avatar
0 votes
1 answer
44 views

I am trying to move the variations drop down above this form I have inserted into my short description, the form developers helped me with this snippet: add_action('woocommerce_after_add_to_cart_form',...
Alex Girgis's user avatar
1 vote
1 answer
69 views

I am in the process of building my woo commerce store using wordpress and elementor but I've run into a wall as I don't know how (or if it's possible) to create a "sold" page that ...
KJ's Closet's user avatar
0 votes
0 answers
26 views

I have a page with a dropdownmenue that is generated by [dynamic_gallery] which is fine, and I see the content I want to see listed, also fine. But if I click on any of the items, a plain text ...
Karol Rozycki's user avatar
0 votes
1 answer
54 views

I have a problem with the shortcode, it does not show me the values ​​I enter correctly For example, this shortcode: function subscribe_link_att($atts) { $default = array( 'link'=>'', ...
jimi-del's user avatar
  • 141
1 vote
2 answers
240 views

I am building a block theme for Wordpress. I wrote a shortcode function that is supposed to output the message "By [author's display name with author's link]". More specifically, I am trying ...
user28551593's user avatar
0 votes
1 answer
415 views

I made a custom widget to display cards of some software tools (it renders them and filters them by type, tags... via the Elementor Controls) Now I'm making the template of taxonomy terms (Taxonomy is ...
Sailor S's user avatar
2 votes
2 answers
156 views

Here below, is an existing function which is called in woocommerece-integration.php file to display the add to cart button in product cards on any WordPress page. I have a wishlist plugin which gives ...
SIDDHARTH 's user avatar
0 votes
1 answer
144 views

I'm using woocommerce and have "virtual" and "downloadable" products. I want to create a shortcode to display a "Download" button for these products. Because there are so ...
thuận đinh's user avatar
1 vote
1 answer
98 views

I need to create a shortcode that displays a specific wordpress menu on a Woocommerce product depending on the category the product belongs to. Both the category and menu are identified by ID but I ...
Ñako's user avatar
  • 77
0 votes
0 answers
96 views

I am trying to implement a WP Elementor form with a custom shortcode. I want to send the form submission to a dynamic email using a shortcode and here is the custom shortcode. function ...
Kamalpreet Singh's user avatar
0 votes
0 answers
45 views

This shortcode nicely displays the price of a product and the add-to-cart button side by side: [add_to_cart id="xx" style="" show_price="true" quantity="1"] But ...
Elly's user avatar
  • 1
0 votes
0 answers
113 views

My question is to create something in Wordpress. I like to create a kind of advent calender. There are 25 small images an one big image. What i want to establish is when clicking one of the 25 small ...
Hans Stavleu's user avatar
0 votes
0 answers
136 views

I have plugin that I wrote that adds a menu item to the Wordpress dashboard, which when selected, shows a template page that is coded in Templates/admin.php file. This works, but now I am looking for ...
Rich's user avatar
  • 37
0 votes
0 answers
101 views

I am making a shortcode in wordpress, including bootstrap accordion so that when I put the shortcode in the editor it gives me the posts title, image, categories, content etc. When I am putting ...
Ashish Nautiyal's user avatar
1 vote
1 answer
203 views

I used the code below to display a certain amount of attributes within a Custom Tab by using a shortcode. This works fine but not all products carry the same specs. How can I hide the lines that ...
John Roeland's user avatar
0 votes
1 answer
52 views

I have a function that loops all Woocommerce subcategories for the current category. Inside the subcategory loop there is an advanced-custom-field that is supposed to display an icon. But I do ...
perqedelius's user avatar
1 vote
2 answers
185 views

I'm trying to display some information about a person including Picture & Biography. The biography comes from a user controlled source that accept markdown. I managed to print multiline input ...
Scoubi's user avatar
  • 35
2 votes
1 answer
248 views

I'm trying to create 2 dropdowns, one for brands from Perfect Brands for WooCommerce plugin, and the other for 2nd level product categories. The category works on it own, but the brands just returns ...
SamberJac's user avatar
0 votes
1 answer
43 views

I want to create a dynamic panel for my WordPress theme using PHP code. To do this, I have placed the following code in the functions.php file: function dynamic_panel($title, $content) { $...
Wp-PHP's user avatar
  • 109
0 votes
2 answers
78 views

I'll start by saying that I have no background in php. I need to embed a shortcode to display the name of the specific taxonomy the post is associated with. The shortcode is embedded in a single post ...
anat's user avatar
  • 5
1 vote
1 answer
78 views

I'm looking to use something like [product_category excerpt="yes"] in order to display product short description only when needed. I'm using this function below to add the product short ...
Ryan Cole's user avatar
2 votes
1 answer
184 views

With the following Code I get a Custom Product Attribute from WooCommerce. Is this code compliant or could it be solved better? Is the global inside the function used properly? How can I extend the ...
Penumbra's user avatar
  • 207
0 votes
0 answers
43 views

I have created a WordPress shortcode (using the Code Snippets plugin) that works fine. I need it to work within a template so, on my local system, I have edited post-content.php and inserted $content ....
Peter Cooper's user avatar
1 vote
1 answer
822 views

I'm trying to generate a shortcode that gives me the option to display the reviews/ratings of a WooCommerce product anywhere on the single product page. So far, the reviews are displayed by default in ...
Lars's user avatar
  • 11
-2 votes
1 answer
74 views

The category page displays the subcategories under it using the following code: add_shortcode( 'list_subcats', function() { ob_start(); $current_cat = get_queried_object(); $term_id = $current_cat->...
anat's user avatar
  • 5
0 votes
0 answers
38 views

I have custom app that uses a form to send data to Quickbooks to create an invoice. A php file on C-panel contains the code for the form. The code is posted below. @extends('layout.mainlayout') ...
R E's user avatar
  • 1
-1 votes
1 answer
95 views

i'd like to create a shortcode for wordpress to display the category name. Each post on the website is associated with only one category, so there is no need to display a list of categories but only ...
anat's user avatar
  • 5
0 votes
0 answers
37 views

A client wants to show blog-posts of seperate years with a headline inbetween. Right now we are showing all posts with this shortcode: <!-- wp:ivory/posts-grid {"postsToShow":36,"...
meniK's user avatar
  • 13
0 votes
1 answer
71 views

I'd like to get the total quanitty of all items ever sold to create a shortcode to call on in a counter. I have used the below to call on total number of orders but now I want to get a combined total ...
odind's user avatar
  • 1
1 vote
0 answers
57 views

I'm a total newbie at PHP/WordPress, so please help me out: I want to add the current calender week (the week number in the year) to my webpage. My idea was to first create a new shortcode in the ...
Moritary 's user avatar
0 votes
0 answers
103 views

I have a custom shortcode that shows the last updated date of my posts. The shortcode is ouputting the proper date but is appending the word "Array"? How do I get rid of this? //Last Updated ...
Tristen Arnold's user avatar
0 votes
2 answers
533 views

Is there a shorter way to get all countries populated options, instead of writing options one by one, in the following dropdown? <select name="input-country" id="input-country" ...
JustSadY's user avatar
1 vote
1 answer
91 views

From Get the customer's total spend for a period of 1 year in WooCommerce answer to my previous question: // Utility function: Get customer orders total amount from specific status on a period ...
Lgane's user avatar
  • 89
1 vote
1 answer
258 views

Using the code from Show custom text based on total spent by user in WooCommerce: add_shortcode('user_total_spent', 'get_user_total_spent'); function get_user_total_spent( $atts ) { extract( ...
Lgane's user avatar
  • 89
1 vote
1 answer
82 views

I have some filters like this inside my plugin add_filter('woocommerce_product_get_price', 'custom_price', 99, 2 ); add_filter('woocommerce_product_get_regular_price', 'custom_price', 99, 2 ); ...
mr.work's user avatar
  • 185

1
2 3 4 5
45