Questions tagged [wordpress]

Consider using https://wordpress.stackexchange.com . This tag is for programming-specific questions about the WordPress content management system. Off-topic questions include those about theme development, WordPress administration, management best practices, server configuration, etc. These are best asked on https://wordpress.stackexchange.com .

Filter by
Sorted by
Tagged with
0 votes
1 answer
93 views

Convert existing bower foundation+scss website into wordpress theme

I am currently trying to get used to using a combination between the foundation framework and scss, both auto-generated by the foundation cli which was recommended to me. After building a small ...
user avatar
4 votes
1 answer
5k views

Anchor links scroll to incorrect position

I'm struggling to make my anchor links work properly. Website is http://www.imprero.com and at the very top you see a link "Zobacz atrakcje" which should lead to a section below called "Produkty". ...
Chris Osiak's user avatar
0 votes
2 answers
676 views

Navigation position "absolute" not working

I'm trying to move the Navigation position "menu" to the top, check the pic: .site-header-layout-two .main-navigation { position: absolute; bottom: 0; right: 20px; margin: 0; top: ...
narzan's user avatar
  • 172
2 votes
2 answers
3k views

Add YITH Wishlist to WooCommecre "My Account" page

I have a custom WooCommecre my-account page that have a navigation bar to show woocommerce account navigation(I just customize navigation style). I want to add YITH WooCommecre Wishlist to navigation ...
IR4N0nY's user avatar
  • 25
0 votes
1 answer
50 views

Using wordpress in a subdirectory

I use to have wordpress installed on the root of the website, but today I moved to a subdirectory "root/blog" with these steps: 1) Moved all the files> 2) Copied .htaccess and index.php do "root" and ...
Antonio's user avatar
  • 492
0 votes
2 answers
751 views

Wordpress Ajax call not working on custom page

All seems in order, but still not getting destination populated. So far I've verified that it can find the PHP and JS files within the plugin I created and even generate the output in XML. That I can ...
BernardA's user avatar
  • 1,401
-1 votes
2 answers
1k views

Load Wordpress search results using AJAX

I'm trying to load my WordPress search results on the same page using AJAX. But I can't figure out how to show the search results on the page. I googled and found a lot of code but most of them didn'...
Jay-oh's user avatar
  • 426
-1 votes
1 answer
84 views

Wordpress - Output different images instead of category name

On the wordpress theme i am creating, the homepage consists of a list of 6 categories. The format is set out as below - Cat 1    Cat 2    Cat 3 Cat 4 &...
Ashley Watson's user avatar
2 votes
3 answers
3k views

Permission in linux using xampp and wordpress

I'm trying to move more and more to linux, and i have some problem with the developement of my website locally with wordpress. Everything went fine with installing wordpress and xampp. But now, if i ...
foufrix's user avatar
  • 1,336
0 votes
0 answers
22 views

Visual Bakery extra margins when adding pricing tables

On a page I've built using visual bakery. It is wider than 100% and making a horizontal scroll bar appear. I've looked using firebug and can't see whats pushing this extra space on the right. I ...
user3885612's user avatar
0 votes
1 answer
574 views

advanced custom fields wordpress custom class

I have a custom field in ACF which is a button that I need to change to a different colour based on what page they are on, so for example Page 1 - Button needs to be blue Page 2 - Button needs to be ...
iLC's user avatar
  • 347
0 votes
2 answers
2k views

Where is the source code - installed wordpress (Google Cloud Platform)

I have installed the wordpress on google cloud platform through wizard provided by google itself. I want to edit the files but Where is the source code - installed wordpress (solution provided by ...
Luckyy's user avatar
  • 1,021
1 vote
4 answers
30k views

How to remove or disable Preloader in Wordpress Theme?

I have bought a theme from themeforest, I just want to remove/disable preloader from it, Below is the link of the wordpress theme. http://demo.thewebsitedev.com/offshore/
Sandy's user avatar
  • 13
0 votes
1 answer
654 views

Add product to user's Woocommerce Cart from Android Application

I am trying to use a php script hosted on the same webserver as a woocommerce site to act as an interface between my Android (and soon to be iOS) application. I have implemented sessions by ...
Samrodev's user avatar
1 vote
1 answer
69 views

Hosting a premium WordPress plugin on a server for auto-update purposes

I followed a guide on how to host your (premium) plugin on a server for auto-updates. Everything is working, but it's not secure at all. The link to the plugin's ZIP is public and anyone can download ...
Nikolay Dyankov's user avatar
0 votes
1 answer
32 views

WordPress Customise Form

I am working on a WordPress site based on Customized cakes. I am stuck with one element where the customer can make his own cake, i.e. can add Base, Toppings, Layers. Its like like PizzaHut or Dominos....
Ashwani Vatsa's user avatar
0 votes
1 answer
148 views

Wordpress embedded twitter, instagram not scrollable on mobile iphone

I just started using wordpress and www.PlanetWeb.ca is my first site, but for the life of me I can not figure out why I can not scroll on mobile devices when embedding youtube, instagram , facebook ...
Alex Kovalenko's user avatar
1 vote
1 answer
2k views

Automatically add multiple products to cart on visit WooCommerce

I am working on a webshop test case and what I would like is to add automatically items/products to the cart on visit. So I searched for something like that when I found the same code over and over ...
Giesburts's user avatar
  • 7,017
0 votes
0 answers
23 views

get data from table with two different constraint

While working on a project for designing rest api I have to write queries which uses database of wordpress. What I've to do is get the post title and post featured images from posts table of wordpress,...
baldraider's user avatar
  • 1,059
0 votes
1 answer
21 views

Exclude category from chronological order

I am using an exisiting plugin to sort my wordpress posts in a chronological order but I figured out that I need to exclude the category ID "5" (named "FrontPage"). The code looks like this: ...
Moritz's user avatar
  • 389
0 votes
0 answers
138 views

How to set first "slug" link as active in a php menu

I am working with a Wordpress gallery plugin. I would like the first link in the filter menu to automatically be active when the page loads. This is as by default it loads ALL the images from all the ...
Dániel Erényi's user avatar
0 votes
1 answer
48 views

Wordpress | Custom editable permalink per post

On my website I have a page showing all portfolio items. Every portfolio item has a link to their own detail page. My client wants to display every portfolio item on that page (Portfolio page), but ...
Jeroen's user avatar
  • 1,168
1 vote
1 answer
354 views

301 Redirect not working with '%'

I am trying to create a 301 redirect on my WordPress site because an author's name has recently changed. Other redirects are working, but not the ones below. Redirect 301 /author/old%20author /author/...
Luke Pring's user avatar
1 vote
2 answers
360 views

Custom post type archive root level theming

I'm stuck with a theming question. I have a Custom Post Type (Products) and a Custom Taxonomy (Product Types). The CPT Archive checks if there are any direct Taxonomy children and if yes, displays ...
wildfang's user avatar
  • 315
1 vote
3 answers
87 views

Edit existing items in a Wordpress theme

I've created a homepage, that simply has a sentence as the content I've edited the settings so that this the front page of the website. However, given the theme that I am using, when I go to the ...
Adam's user avatar
  • 2,432
0 votes
1 answer
50 views

first time click on any image…my code doesn't seem to update

jQuery('body').on('click','.thumbnail',function () { if(wp.media.view.Settings.AttachmentDisplay){ var _AttachmentDisplay = wp.media.view.Settings.AttachmentDisplay; ...
Arin Rockcy's user avatar
0 votes
3 answers
2k views

wordpress shortcode content is showing two times

I am developing a shortcode for wordpress. using the shortcode in word file as : add_shortcode('LATEST_NOT_ROHIT','latest_notification_rohit'); function latest_notification_rohit() { include("...
Rohitashv Singhal's user avatar
0 votes
0 answers
33 views

Proper code in .htacess file to redirect WordPress HTTP to HTTPS

I found a few redirect directives for my Apache Server on different websites. All of them are working fine - but which one is the best? Can anyone explain me which of the following code lines is the ...
Learning by doing's user avatar
-3 votes
3 answers
141 views

condition to button for members and visitors

how can i add a condition to a button ? for visitors it will be LOGIN for logged in it will be changed to LOGOUT another button will appear if member log in and disappear if he logged out its a ...
Bob neverstop's user avatar
0 votes
1 answer
714 views

Hiding price in woocommerce

I want something on woocommerce. That when I set zero price on a product, it shall not show it (the value) , just set it out of stock. and hide add to cart button in product page.
MohNj's user avatar
  • 506
0 votes
1 answer
70 views

Upload attachments to a page in Wordpress

I've installed a plugin that allows a user to upload an attachment to my Wordpress site. In doing so, I can see that the attachments get uploaded to the "wp-content" directory of my Wordpress ...
Adam's user avatar
  • 2,432
0 votes
1 answer
266 views

Excluding URL in custom wordpress-angular application

I'm using .htaccess configuration to rewrite my routes, everything after http://localhost:8080/loveat is redirected to index.php where angular handles routing thanks to ui-routing. For example http://...
Łukasz Kałużny's user avatar
1 vote
0 answers
53 views

Unexpected delay when doing a http GET in a localhost site

I'm debugging a Wordpress offline site (localhost). It's been a few months since I'm not working on it and now I'm getting a delay of about 2 seconds on each request at https://apis.google.com/js/...
user3056498's user avatar
0 votes
3 answers
247 views

Edit code of page on Wordpress

I want to edit the HTML code of my Wordpress page. Exactly, I want to create a page, not posts, in my Wordpress page, where I want expose my CV and insert my photo which will changes when I pass the ...
Iratzar Carrasson Bores's user avatar
1 vote
1 answer
505 views

phpcs errors on Linux Mint

I have installed composer and phpcs on Linux Mint, after running the command in terminal phpcs --standard=WordPress-VIP class-wpeka-auto-updater.php it throws the following errors PHP Fatal error:...
Ratnesh Kadam's user avatar
0 votes
1 answer
970 views

WooCommerce custom sort (multiple condition)

I am trying to sort products on woocommerce in the following conditions: unavailable products goes down rest of products should be ordered randomly I tried several ways, but the problem is that ...
Hamid's user avatar
  • 289
0 votes
0 answers
549 views

how in buddypress to add new link in the navigation group with the ability to specify the position?

How in buddypress to add new link in the navigation group with the ability to specify the position? I tried to use function bp_core_create_nav_link(),but it's not working function a21_nav(){ global $...
jetfire21's user avatar
0 votes
1 answer
694 views

How do you Change the mobile nav menu background only

I have a site in wordpress i would like to change its mobile menu background. I have tried so many times in the css but seem not work. Each menu appears very fine on the main site and the mobile ...
Fiifi Is-Alright's user avatar
7 votes
2 answers
9k views

WooCommerce codex : how to set the user/customer on an order

I am writing a WooCommerce Plugin that takes care of payment and delivery. Right now I am at the point of creating an order based on the current shopping cart. That all works fine getting the items ...
kris's user avatar
  • 12k
0 votes
1 answer
163 views

Payemnt Method in Woocommerce how to get meta of this method?

I have added EVERTEC as woocommerce Payment Method https://www.evertecinc.com As you can see here what I have set as Evertec Username & Evertec Password I want to get Username and Password on ...
Dharit Soni's user avatar
0 votes
1 answer
65 views

On Click Event JS Loader Wordpress

So I got a wordpress website, tailored and CSSed to work as a mobile application on apache cordova and everythign is working fine. Since it's highly reliable on the inAppBrowser the user doesn't get ...
Ahmad Hussien's user avatar
2 votes
1 answer
390 views

Prioritize visible content in pagespeed

I'm working on the item Prioritize visible content. I've moved styles related to the top window in the head. What happened you can see on the following screenshot: After I wrote a simplified test ...
Sergey Kirillov's user avatar
0 votes
0 answers
80 views

Wordpress search and Filter API for IOS and Android

I am working on a project to apply filters on wordpress post...I have created JSON Output and Now I need to apply 5 filters that are as follows.. 1. All 2. Today 3. WeekEnd 4. Next Seven Days 5. Date ...
edocCode's user avatar
-5 votes
2 answers
95 views

HTML to CSS (from inspect element)

I am trying to find the CSS code to place in my wordpress backend to float my page element in the center. I have figured out how to float center, but not how to convert the HTML into CSS. please help
Bridgette's user avatar
11 votes
6 answers
3k views

Session lost after form submit in wordpress

The session I set is lost after the form is submitted. I had built the session class to set new session, unset and so on. In function.php of wordpress template. function.php if (!session_id()) { ...
user254153's user avatar
  • 1,865
0 votes
1 answer
509 views

Can't make kubernetes example for wordpress & mysql with persistent data work

I followed this kubernetes example to create a wordpress and mysql with persistent data I followed everything from the tutorial from creation of the disk to deployment and on the first try deletion ...
Dorward Villaruz's user avatar
0 votes
1 answer
175 views

No option to set a static homepage in WordPress

I've just installed the newest WordPress (4.7.3). There is no option to set a static homepage, as shown below. It should look like, How do I set a set a static homepage in WordPress?
SparkAndShine's user avatar
0 votes
0 answers
35 views

Trying to have my featured images post in a loop if they are set

I have a custom post type set up right now with each posts allowing up to 6 featured images to be added. I want to loop through the 6 featured images and generate the HTML IF there is featured image ...
Bdanzer's user avatar
  • 90
1 vote
0 answers
49 views

Big file in my /usr/share/nginx/ directory that keeps increasing, why?

I'm new to ssh and vps management. In fact I had someone do the initial configuration and setting up my WordPress site, but I feel there is something wrong (Multiple things), because the site goes ...
Jessica Jaimes's user avatar
0 votes
1 answer
242 views

Scaling a site title uniformly with CSS

I have a site title in a Wordpress site that is scaled on hover with some CSS code. The problem is that the title is not scaled uniformly, but runs left. How to solve this? The HTML code: <div ...
Yurié's user avatar
  • 2,158