All Questions

0
votes
1answer
17 views

What's the best way to query from custom table?

I installed a standard theme. Now I have to create a static site with custom queries. Customer should enter own age and family status etc., the following query results in showing insurance rates in a ...
0
votes
0answers
17 views

History API & URL for single long page

I'm working on a NON-API Wordpress site. One of the pages is a long page segmented into several sections. At the top of the page is a menu for most of the sections on the page. When a user lands on ...
0
votes
0answers
9 views

Is it possible to have multiple product_tag in a WordPress URL?

I'm trying to create a custom link that combines two product-tags for filtering products that have the product-tag man AND brandname. I'd like to put in the same link the following two example links: ...
0
votes
0answers
6 views

Logged out content shown until refresh

Whenever a logged in user lands on a page it has also opened when still logged out, it shows the logged out version of that page until you refresh the page. Is there a way to force the browser to ...
0
votes
0answers
24 views

woocommerce axios react

I don't understand why my request to WooCommerce API doesn't work. My usage on react App via axios: First try: return axios.get( 'http://domain/wp-json/wc/v3/products?featured=true', { ...
-1
votes
0answers
17 views

get_post_meta returning blank with wordpress cache

So, after i implemented some caching to my website when i create a post with a custom field the value on the field won't display on the front-end, only in the back-end until i clean my php cache, the ...
0
votes
0answers
7 views

connect woocommerce custom field to wp user meta upon customer registration

I'm adding a custom field on my woocommerce registration that actually saves customer IG usernames by using this code below placed on my child theme's function.php file: function ...
0
votes
0answers
19 views

How to display “Category and Post_tag” component in a CPT Gutenberg edit screen?

I want to use Categories and Tags everywhere in WP (Articles, Pages, Attachments and CPT like for example Jetpack-Portfolio) I have been able to show these 2 core taxonomies (category and post_tag) ...
1
vote
1answer
16 views

Displaying avatar of a user

I would like to display the avatar of a user. https://imgur.com/a/jiMn9ZD I want to do custom styling, such as the circled avatar. I have read there is code, and I am assuming this is the one I am ...
0
votes
0answers
18 views

Problem with categories

I have a problem with wordpress network. The website and the admin are working fine. My issue lies in the categories and the separation of the article across the network: I create a new article with ...
0
votes
1answer
15 views

How do I disable wpautop for a specific block?

I've registered a custom editor block with Advanced Custom Fields (ACF), and am using render_template with a PHP template partial to display the block contents. Inside the template is some HTML (...
1
vote
2answers
52 views

Memory Leak in plugin action

I made a plugin that basically reads a CSV file and imports data to relevant tables. However, the action seems to create an error: Fatal error: Allowed memory size of 134217728 bytes exhausted (...
0
votes
0answers
5 views

Order selector when using woocommerce products shortcode [on hold]

If I display products with shortcode like this: [products category="edesitok" pagination="true" limit="12" columns="3"] there is no sort order selector on the top of the list (for visitors) like "...
0
votes
1answer
6 views

how to properly mount external server directory for wordpress uploads

I have multiple servers I am using for my wordpress site, each server has its own purpose. Currently I have a server that I want to use for all of wordpress file uploads, this way nothing is saved on ...
-1
votes
0answers
18 views

How to delete images and posts what not viewed last 6 months? [on hold]

Maybe you know some plugin or custom code?
0
votes
0answers
36 views

Wordpress 5.0 install breaks after minor dashboard commands [on hold]

Building a WooCommerce store and no matter what I do this site continues to crash randomly upon making any changes whether new post or plugin settings. Site works fine but then randomly redirects to ...
0
votes
0answers
15 views

How to limit which information about a product is returned by wc_get_products (WooCommerce)?

My current code uses wc_get_products to return all published products that are instock: $wc_products = wc_get_products(array( 'status' => 'publish', 'stock_status' =...
0
votes
0answers
30 views

Add extra field to the post featured image Wordpress 5.0

This code work well for old wordpress 4.8 to add custom field into featured image box. Wordpress 5.0 in not working with add_filter admin_post_thumbnail_html add_filter( 'admin_post_thumbnail_html'...
0
votes
0answers
14 views

get_template_part calls amount and performance?

I'm trying to build the theme that is easily customizable by other developers and chose to go get_template_part route so files can be easily overwritten in child theme. My question is there some ...
0
votes
1answer
27 views

Why translations?

I wonder why my WordPress installation has frequent updates for all sorts of translations, as my webpage is in a single language only (German). Is there some way to uninstall languages/translations ...
0
votes
0answers
15 views

Help to arrange attribute product in right order in woocommerce

I have a WooCommerce website where I want to sell shoes, but I have a strange problem. The attributes are set randomly and don't fit the order set in attribute custom order. I have this function which ...
0
votes
0answers
13 views

Add extra products on add-to-cart action

I'm having some trouble adding extra products on add to cart button is executed. Basically, the user gets a few extra products in the product to choose from, My problem is that the user can still ...
0
votes
0answers
12 views

Comment review not mandatory

I have a star rating system in my web, and I need comments to not be mandatory so that customers can review only using the stars. How can I do that? Thanks!
1
vote
3answers
84 views
+50

How to remove p / br elements from gutenbergs editor

We updated to Wordpress 5.0 on our website, problem is that this includes the new gutenberg editor. Before this I already removed the WP function that sometimes places <p> and <br> ...
0
votes
0answers
9 views

BUG - Published articles remain in the drafts? [on hold]

I don't understand why but my new wp articles are published but they remain in draft section since 10/12 days. It was working perfectly well. If someone has an idea, it would be very helpful. Have a ...
0
votes
0answers
6 views

Search Articles based on YEAR (wise), save the status [on hold]

Need to Search Articles based on YEAR WISE, List the article save the status in the backend mysql using wordpress, could anybody suggest a plugin to implement this. Or share the alternate approach. ...
0
votes
0answers
12 views

How can I change a media attachment URL/slug, so that I can use that slug for a page?

As in the title. Yoast is now installed so that all media page URLs redirect to the image itself, but how can I change that slug for the image? It's currently using the slug I'd like to use for a ...
1
vote
1answer
34 views

SEO Friendly URL on dynamic product page produced via shortcode

I have created a product page in wordpress, /product. This currently takes the id of a product /product/?id=123 The page has a shortcode that then fetches and displays the relevent data e.g. [...
0
votes
0answers
14 views

function to generate custom field for Mailster newsletter from WPgens referral code

I’m quite new to WordPress – and coding in general except I did a lot of SQL, R Matlab etc during my studies a long time ago so I can learn if I know where to search :-). But php, javascript etc are ...
0
votes
0answers
11 views

Ultimate Member Social Login Facebook URL Blocked [on hold]

I am trying to implement the Ultimate Member Social Login extension, but when I click on the 'Sign In With Facebook' button, it takes me to Facebook and a box appears that says: URL blocked: This ...
0
votes
1answer
28 views

How to remove whitespaces from source of posts created through WordPress Gutenberg editor

my understanding is that empty lines are created when Gutenberg removes the block comment. so how can i remove this?
0
votes
0answers
18 views

How to find out which plugins are slowing down wordpress site?

I am running a wordpress website. Speed of my website is very slow. I want to check which plugin is/are slowing down my website. Is there any plugin or other method to check this?
0
votes
1answer
27 views

How to display liked posts of current user in wordpress?

Im using an ajax like dislike post system on my wordpress theme. When the user likes the post there are some post metas to update or to add like the following: if( $post_like == "like" ){ ...
0
votes
0answers
12 views

Google Maps Not Working [closed]

I keep getting the error "For development purposes only" on my Google Maps. I've added the API credentials from the Google console. I'm using Betheme on Wordpress, and I've added the API in there. ...
0
votes
0answers
15 views

Avoid Cookie from removing old notifications

sorry guys i'm newbie with WP, How can i avoid cookie from deleted old notifications! How can i keep all of them until expiry comes or click on Hide button. I don't need to remove the old ...
0
votes
0answers
22 views

Parameter is not registered ortext_id, ortext_passwd and ortext_token

Please, help me. I update WP 4.9 to 5.0 and... [10-Dec-2018 17:27:15 UTC] PHP Notice: Function edit_form_advanced since version 5.0.0 <strong>deprecated</strong>! Use ...
-2
votes
0answers
29 views

Notice: is_404 and is_single was called incorrectly // WP 5.0 [on hold]

Please, help me. [11-Dec-2018 01:19:03 UTC] PHP Notice: is_404 was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they ...
0
votes
0answers
11 views

How to show No Post Found when a user has not posted anything yet

I am using Wordpress 5.0 By default, when a logged-in contributor click "Posts" or "All Posts", a list of his posts are shown. But when he has not posted anything yet, clicking "Posts" or "All Posts"...
0
votes
0answers
23 views

Automatically populate custom taxonomy with a value from a custom field

I'm working on a real estate website, and right now we have a feed importing new regional listings automatically (RETS feed). Certain fields in the 'properties' post type that comes with the real ...
0
votes
1answer
13 views

How to show Custom Field Value in Woocommerce Shop Page

remove_action('woocommerce_shop_loop_item_title','woocommerce_template_loop_product_title',10); add_action('woocommerce_shop_loop_item_title','fun',10); function fun() { echo 'custom_field_value'; } ...
1
vote
1answer
27 views

How do I move the page title (H1) to header.php (outside of the loop) in a Wordpress theme?

I am trying to put my page title in header.php because I want it to print before the initial content div. To my surprise this has proved quite challenging. I have tried using the_title(), and this ...
0
votes
0answers
7 views

WooCommerce: How can I select the catalog_visibility for a product?

I know, as simple as it sounds but I don't get it running: How can I select the product visibility for a product by his id via SQL? This is what I have: global $wpdb; $result = $wpdb->get_col( "...
0
votes
0answers
18 views

Error on Wordpress site: “an error occurred while processing this directive”. Have debug.log output available

Hope someone might be able to shed some light on this one. The error is very generic and seems quite unpredictable. Happens on some page loads, not others, and when it does, if you refresh a few times,...
0
votes
1answer
21 views

Shop Manager role cannot edit pages using WPBakery Page Builder

I'm using both WPBakery Page Builder version 5.4.7 and Woocommerce version 3.5.1 on a site I'm working on. Even with the settings enabled for the Shop Manager role to access and use the Visual ...
0
votes
1answer
14 views

New Post bubble

How can I add a bubble that says "new content" to all posts within the last week? I have looked at all available solutions but they only appear to be for menu items. thanks in advance.
0
votes
1answer
16 views

How can I prevent users from creating new categories?

I've set up some categories. I don't want users to add new ones. How can I do this?
0
votes
0answers
8 views

WP-Job Manager Plugin: Sidebar Widgets Looks Terrible [on hold]

Thanks a million to those who can help. I am using wp-job manager and the sidebar widgets in the single job listing page are all over the place. Is there any css I can use to fix the sidebar please? ...
0
votes
0answers
22 views

Plugin architecture to implement machine tags? [closed]

I'm new to Wordpress, but not to development and I was hoping to get some advice on how to implement a somewhat complex tagging feature within Wordpress. What I'm wanting to do is called machine tags ...
0
votes
1answer
16 views

Why after a file is programmatically deleted, is there still a reference in the media library?

I work on a plugin that gets a file uploaded to the upload folder through media. The file is processed if it does not meet x condition the process is aborted and the file is deleted. The deletion is ...
0
votes
1answer
16 views

Integrating colorpicker into array field

I am using this code and i am trying to show a colorpicker onto an array field. Any ideas, how to do it? <?php class Smashing_Fields_Plugin { public function __construct() { // Hook ...

15 30 50 per page