All Questions

0
votes
1answer
506 views

Sale price/original price styling issues

When there is a sale on a product, I'm trying to line-through the original price so it's clear what the actual price of the product is. However, there's no css class associated with either the sale ...
0
votes
1answer
19 views

Extend Woocommerce rest api routes fails

While I'm trying to extend Woocommerce Rest-API routes with a custom one I face the following problem. I have the following class which tries to hook inside Woocommerce API class API_LOADER { ...
0
votes
1answer
13 views

How to display LinkedIn feed/company updates into WordPress site?

I've been using LinkedIn Company Updates plugin for over 2 years to display linkedin feeds into wordpress site. But it's not working anymore. I've been trying over a week now to find a way to solve ...
0
votes
0answers
2 views

How can I allow password reset based on logins containing the @ character?

I'm working on a setup where user logins have to follow this format : login : user-john@doe.com Even though Wordpress has no problem creating such accounts, it seems they don't play well with ...
3
votes
2answers
9k views

detect the language a post is written in

Is there any way to evaluate the language a post/page is written in? I am building a multilingual site and am almost pulling my hair out trying to get the front-end navigation to take the chosen ...
0
votes
0answers
9 views

WPGlobus Multilingual - REST API

I'm using WPGlobus plugin with REST API, For fetching data from posts now if I fetching content of pages it shows me like, "content": "{:nl}De korting wordt automatisch berekend aan de hand van o.a. ...
0
votes
1answer
15 views

How to use alternate post layout at key points in post loop?

How can I intervene in my post loop output to show 3 posts in alternate mark-up, and then resume? I have a post loop that calls my post card template fragment, card-pair_top.php, to display like this....
0
votes
1answer
27 views

Run a code only on theme activation only during first activation

function clearwidgets(){ //stuff here only runs once, when the theme is activated for the 1st time } register_activation_hook(__FILE__, 'clearwidgets'); And the code I am trying to execute is this:...
1
vote
1answer
485 views

Setting youtube size in functions.php

I'm using the code below to set the width and height of youtube embeded links ////////////////////////////////////////////////////////////////// // Youtube shortcode //////////////////////////////////...
0
votes
0answers
9 views

Target specific position for custom content

I have needed to display custom content (a post of a specific category) in a specific place inside a page. I know how to create custom hook to target the desired location, but since I'm generating ...
0
votes
3answers
17 views

Increase .htaccess file upload without prompting error

I have a Centos Web Panel hosting and a new WordPress file. I wanted to migrate all of my local WordPress files to the live server so I installed All-in-one WP Migration. Unfortunately it can only ...
0
votes
1answer
525 views

batch UPDATE autoload value in wp_options table

After running the following query SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; I've found I got 1587 autoloading options values, mostly belonging to custom fields values; ...
0
votes
0answers
12 views

Lazy loading with pagination error

hello I was implementing lazy loading in WordPress through pagination it works fine but it repeats the data when I scroll down for example, if the expected results are 4 posts only and I scrolled ...
0
votes
1answer
7 views

How to stop subdirectory wordpress install adding head elemets to entire site?

I am working on a static website, www.example.com and have installed wordpress in a subdirectory: www.example.com/blog. I have created a custom elemnt on the home page which pulls in the latest blog....
0
votes
0answers
16 views

Delete posts at a specific time of day

my site uses custom posts for events. The event post is deleted daily on the day of the event. I would like to slightly alter the deletion of the events to be the day of the event but in the evening. ...
0
votes
0answers
8 views

Display archive posts from specific category on custom template page

I want to show yearly archives based on categories. But it shows all archives when I click on specific category. Can anyone help me please.
-1
votes
0answers
11 views

Wordpress theme similar to Airbnb [on hold]

I want to build a website in wordpress that has similar functionalities to airbnb (availabilities, bookings, direct messaging, commision for each transaction done between the users). Is there a ...
1
vote
2answers
730 views

loop through all posts memory error

I have few thousands posts and need to list all of them in the admin. When I used WP_Query to get them all at once I got a memory error. Then I split it into several query calls and it worked just ...
0
votes
1answer
537 views

How to force wp excerpt to use br tag?

wp editor was replacing br tag with p tag. not all the solutions here worked. It was causing problem with design. So i disabled wpautop with below code.... remove_filter( 'the_content', 'wpautop' ); ...
0
votes
0answers
8 views

My website is translated automatically to stars when accessed from different country

My website (specifically digits and codes in post detail pages) is translated automatically to some other language when accessed from different language countries and makes digit into stars and my ...
0
votes
1answer
523 views

Menu on responsive twentytwelve theme not working, strange url error

i use twenty twelve custom theme (palumariosrl.it) but i have a problem. If i try to use on responsive mode the menu not function (can i see only hover menu page and if i click on menu buttom i have a ...
0
votes
2answers
531 views

How can I save a password securely as a settings field

I have a plugin that requires the user to enter a password (to access an external site) into a form field on the plugin settings page. Right now this is just saved as plain text, but I need to make it ...
1
vote
3answers
4k views

WordPress and $_GET Params

This is an odd problem that I have never run into before with WordPress. I have a site, permalinks enabled. The url can be http://mysite.com/page-name/?anyParamName=testing then when I use print_r($...
0
votes
2answers
23 views

FTP + Unable to locate WordPress content directory (wp-content)

When I try to upload a theme in my Wordpress website I need to fill in FTP credentials. I've installed vsftpd on my Ubuntu 18.04 server. When I connect with the credentials in my FTP client (ex. ...
0
votes
0answers
6 views

Woocommerce product variation links

When a user selects a different color on the product page, I want to open that specific product in that selected color directly instead of just changing the featured image. This Plugin is doing ...
0
votes
1answer
605 views

Generate one time URL

I need to implement one time URLs in a wordpress website. I found this script on phpclasses website and I integrated it in wordpress and it seems to work. I think this script can also be useful to ...
0
votes
0answers
16 views

How can I add a woocommerce bookable product form to a page (other than woocommerce product page)?

Currently our website has only one price for a given service. Now we are adding kids prices by woo-commerce bookings plugin. I want users to select the Number of Adults and kids and date of the tour ...
0
votes
1answer
914 views

Wordpress post carousel

I stuck with this. I would like to have a portfolio carousel, that shows 9 of the latest posts in the carousel, and when you click on an arrow, than you will the 9 older posts etc. How can I get this ...
0
votes
1answer
483 views

How to handle image resize in media_handle_sideload?

I am using media_handle_sideload function to upload images in my plugin. Is it possible to disable image resize or set it to a specific size and do not make copies (upload only resized image).
0
votes
0answers
22 views

How to show custom post count in archive page

I want to show custom post count of taxonomies in archive page..not all custom post counts of taxonomy, i just want to show videos custom post count. because taxonomies have two custom post type. ...
0
votes
1answer
20 views

Shortcode Attribute not defined

I have a shortcode [gf_popup pause="1000" location="bottom"] and the location attribute keeps coming back as Uncaught ReferenceError: bottom is not defined. Any thoughts on why? Here is the main ...
0
votes
0answers
9 views

UI built by Visual Composer are broken [on hold]

I developed a website in Wordpress using Visual Composer. The website looks good in local environment & the first day in test environment. But the second day, every elements in website turn to 1 ...
0
votes
1answer
588 views

WooCommerce - callback after order successfully placed

I am using woocommerce with some custom code to add more details on the cart object when it's submitted to the db. This works fine, now I am afater a way to clear the localstorage after the order has ...
0
votes
1answer
15 views

Woocommerce Stock Quantity for Sale [on hold]

Is it possible to set sale quantity for product? I got 100 product quantity but want to set a sale price only for 20 quantity only, after 20 is sold out then price back to normal price. cheers, thank ...
12
votes
4answers
15k views

How to do I get a list of active plugins on my wordpress blog programmatically?

I have 2 blogs, one which is multisite and one which isn't. I want to get a list of plugins active on both the blogs so I can compare them. On the multisite blog, I want to list the plugins which are ...
0
votes
2answers
528 views

Array to string conversion error in PHP 7.2 when returning user role as class

Disclaimer: I'm rubbish at PHP, so please bear with me as I'm still learning. I'm getting the PHP error Array to string conversion for the following code: function osu_add_role_to_body($classes = '') ...
7
votes
1answer
1k views

wordpress wp-admin css not loading

previously its have SSL now don't have SSl my word press admin dashboard css not loading but home page and other page are working perfect any one know how to fix this? no ssl its just http ...
0
votes
1answer
19 views

Posts not showing per category after WP_Query?

I have a Query that goes in and should list all the categories for a post type and loop through and display all the posts within that category but I can't get it to work, it shows the posts in a ...
1
vote
3answers
21k views

bloginfo('template_directory') img src

I am lazy loading some images with URLs which are added via custom fields. The lazy load plugin I'm using requires a place-holder image in the src attribute and the actual image in data-original. ...
2
votes
1answer
559 views

How to get profile user id when uploading image via media uploader on profile page

I have a PlugIn which lets a user upload an image to a user profile in the backend. Now I want to access the user id in the uploader to change the filename of the uploaded image. On the user profile ...
0
votes
1answer
648 views

unable to add custom page/tab to my account woocommerce

I have been trying over and over but have come up empty handed. I have followed this tutorial (https://www.atomicsmash.co.uk/blog/customising-the-woocommerce-my-account-section/) to create a new php ...
27
votes
5answers
39k views

Why use if function_exists?

I noticed a lot of developers of WordPress themes would use this in functions.php if (function_exists('register_nav_menus')) { register_nav_menus (array('primary' => 'Header Navigation')); } ...
0
votes
1answer
686 views

Magento and WordPress URL integration

I'm in a bit of a conundrum. I've integrated WordPress into my Magento site, currently by a subdirectory. Check it out: http://vapetropolis.ca. If you go to the "reviews" section, you'll note there's ...
0
votes
1answer
9 views

How can customized CSS on WordPress highlight the blog title in white when it's not intended?

I put some additional CSS to my WordPress, and it affected the main page in a way that I didn't intend. The below is all the CSS code that I added, h1 { padding: 0.5em;/*文字周りの余白*/ color: #...
1
vote
1answer
560 views

How to make my category archive behave like a page

I don't want to use the category page as usual (list of posts). I would like to add more content: text, images, columns. Which is the best solution? Maybe redirect from a category page to a page? Or ...
0
votes
1answer
607 views

Accessing customizer values in javascript

I'm using a page builder (Divi) and have made several custom controls for the Theme Customizer. No problems hooking up the live preview using postMessage. The issue is that I want to change the ...
0
votes
1answer
502 views

show desktop version of website if button is submited

Hello i can't solve my problem. When users is on mobile device and click on "show mobile version" or something like that it will show him desktop version of web and if he click again switch back it ...
1
vote
1answer
490 views

How to integrate external user tables with WP?

I have about 10K+ users that I get from a company feed (LDAP). I can authenticate WP via SSO based on someone's username matching on the WP user table. I would like to take the user table I have and ...
2
votes
1answer
190 views
+200

Change order/position of Gutenberg inspector control panel

I'm adding a new panel to a Gutenberg block through the editor.BlockEdit wp.block filter. <InspectorControls> <PanelBody title={ __( 'New Settings' ) } initialOpen={ false } > ... ...
0
votes
0answers
13 views

How does one make a URL return dynamic JSON with custom Content Type?

Some background first, I'm trying to follow the directions here: https://developer.apple.com/library/archive/documentation/General/Conceptual/AppSearch/UniversalLinks.html#//apple_ref/doc/uid/...

15 30 50 per page