0
votes
0answers
11 views

Couldn't fetch mysqli_result on another domain, what might be the reason?

I'm developing a plugin and it works fine on my wordpress website, but i've testesed it on other domains with different wordpress instances and when trying to activate the plugin on some other sites ...
0
votes
0answers
2 views

How to create custom Permalink tag?

As you know there are permalink tags like %category%, %postname%, etc. I want to create my own %custom_tag% that I can use in permalinks. Can anybody point me in the right direction? Thanks in ...
5
votes
8answers
6k views

wp_enqueue_script adding conditional statement not working

This is the code im using in my functions file: add_action('init', 'sort_out_jquery_pngfix_frontend'); function sort_out_jquery_pngfix_frontend() { global $wp_scripts; if(!is_admin()) { ...
0
votes
1answer
14 views

How I can add div to menu?

I have div structure <div class = 'main-menu'> <ul class = 'menu'> <li class = 'item1'></li> <li class = 'item2'></li> </ul> </div> But I want ...
0
votes
2answers
528 views

Link to Portfolio page by id instead of name

I'm trying to make a dynamic button that goes to portfolio page (no matter what ID/name it has), it's currently like this: $portfolio_page = get_option('theme_portfolio_page'); $portfolio_pid = ...
5
votes
2answers
877 views

What's the easiest way to close comments on media/attachments?

I consistently get spam attempts on various and sundry media attachments on my primary WP blog. By default, media has open comments (for instance, ...
0
votes
1answer
37 views
+50

add_filter to wp_nav_menu_objects having no impact

I'm attempting to add thumbnails to navigation items as per this question. However, after adding the sample code to the top of my functions.php file, nothing happens. I've whittled the code down in an ...
0
votes
1answer
34 views

Adding CSS-class to WordPress Menu in backend

I am wondering if its possible to add CSS-classes to WordPress menu in backend. If building complex menus, the overview gets lost - would like to style it a bit. Normally it would be fine to add the ...
0
votes
1answer
14 views

How come there is no wp-content directory in wp theme

I am using Mochhost.com as my Hosting. Recently I have downloaded a free wp theme from wordpress.org. I unzipped the theme and I uploaded to my site at http://thegoods.info into my root directory, ...
0
votes
0answers
9 views

Filter Media by Featured on Admin

Usually we can filter images in Media > Library by: date by MIME type, and by attached/unattached files ...but I'd like to expand this to a filter by Featured images. This way, we could filter ...
0
votes
0answers
2 views

Cutomize Colors utility: How to add more configurable colors to a theme

Recent Wordpress install, default theme. There are three colors which can be customized from the admin gui, but there are at least three other colors visible on the website which can't be customized ...
0
votes
0answers
3 views

Custom Taxonomy Archive Page for Parents AND Children?

I have a custom taxonomy called Product Category, which has a range of parent categories, then each parent one has subsequent child categories. Is it possible for the archive page i/e ...
0
votes
1answer
13 views

add login menu with submenu

Hi i have very little knowledge in programming, but try to make word press site by my self. i need to add "Login" to main nav-menu. with sub menu "register" (link http://www.vcanade.ca/register/) ...
0
votes
2answers
624 views

How to add icon over specific thumb

I wanted to do the following, and I know its possible, but I don't know how. I'm looking at in_category, but it doesn't make to much sense. Basically what I want to do, for an example on my homepage, ...
1
vote
1answer
14 views

Get the the title of Wordpress after comma

I've read that you can get the title before comma(,) Get the title before comma but wondering how can I get the title after comma(,) ? is it also possible to use strtok()? or are there similar ...
0
votes
1answer
879 views

Using radio button meta data from a custom meta box

Very new to attempting PHP and am hacking together my first plugin using tutorials.. I have a custom meta box with a Yes/No radio button on all WordPress pages (in the editor). EDIT- I removed the ...
1
vote
2answers
36 views

Set object terms not working on plugin activation

I am trying to create a couple of custom posts and set a custom taxonomy term to it on plugin activation. I am using the register plugin activation hook to do it. The posts are created properly, but I ...
0
votes
1answer
11 views

Display 'modified date' in Wordpress Twenty Fourteen

Could anyone tell me how I can show the modified date from posts to my readers? I use Wordpress Twenty Fourteen with the Twenty Fourteen Extended plugin. Structured Data testing Tool already shows ...
0
votes
2answers
18 views

How to activate plugins for my WordPress sites from a remote server

I have been thinking of managing a set of wordpress sites from a remote server.I would like to get information on plugins that has been installed on my wordpress sites.I would also like to install ...
0
votes
1answer
12 views

Invalid shipping method, WooCommerce

I am stuck with a issue and am not being able to solve it. I did check the other questions and did other research but I didn't find proper answers this. When shipping is enabled and I try to ...
0
votes
1answer
11 views

API calls on plugin activation or init?

When I activate my plugin, I need to call an API, to get some items, lets say fruits, flowers and animals. I need to create taxonomy terms out of these items. Then I need to loop over these items and ...
0
votes
1answer
1k views

Replace link with form to pass variables to javascript / ajax

I'm sending a single variable to javascript/ajax via a link, but want to send via a form so I can pass user input as well. (It's for a plugin that interfaces with an Echonest Remix python script to ...
0
votes
0answers
7 views

How To Remove black space Drop down menu?

i have created Wordpress Site. My site based watch and Knife shopping . after created drop down menu. knife brands single drop down menu. watch drop down mega menu i had used 5 column menu.after ...
0
votes
0answers
12 views

Ongoing 404 Errors in Google Webmaster Tools

I've been contacted by a client to fix their site. The problem is ongoing 404 errors, which have been showing up using Google webmaster tools. Initially there were 169 errors. A couple of days later ...
0
votes
1answer
8 views

How to activate Markdown in a local installation of WordPress 4.3?

As of version 4.3. it should be possible to activate markdown for my posts and comments (http://news.softpedia.com/news/say-hello-to-wordpress-4-3-489688.shtml). I found a description on ...
0
votes
1answer
14 views

How can I remove these resize lines from the comment box?

How can I remove these resize lines from the comment box? http://prntscr.com/8awm1c I'm using the theme twentyfifteen. I don't know where to locate them in the file manager or even the source code!
2
votes
3answers
503 views

Wp_Schedule_Event every day at specific time

I write Following code to run my function every day at 16:20 .. But I guess is the problem in code.. not working Epoch timestamp: 1427488800 3/28/2015 1:10:00 AM if( !wp_next_scheduled( ...
0
votes
0answers
8 views

Increased memory usage after updating to wordpress 4.3

I recently updated to wordpress 4.3 and I noticed an increased memory usage on my server. Sometimes the memory usage is as double as the previous one. Does anyone has the same experience.
0
votes
1answer
423 views

WP-API Custom Post Type json_no_route

I have created a custom post type and extended the WP_JSON_CustomPostType class as in the documentation, I can see the custom type when I go to wp-json/ but as soon as I go into wp-json/quizes it ...
0
votes
0answers
10 views

Reduce Drop down Menu Width in Wordpress

i have used drop down menu. its have two brands of column one watch another knife. previous watch have 5 column drop down mega menu. i had removed two column. its now showing extra black space. how ...
4
votes
4answers
514 views

Should I write a PHP function in home.php?

I am trying to learn WP Theme development. And as I have understod all "wp core" functions should be placed inside functions.php. But what about custom functions? Lets say I would need a simple ...
0
votes
0answers
7 views

Product images (thumbnail open full size same page)

In my custom post type called "product", I have created a template with a few thumbnail images and one full size. When you click on the thumbnails, they opens up in new or same window. But I want ...
0
votes
0answers
6 views

How can i show the brand name in wishlist?

How can i show the brand name in wishlist page? I am using woocommerce and i have installed woocommerce brand plugin also to show brands of each product. I have a website of watches, so each product ...
0
votes
0answers
15 views

Listing posts according to their popularity and hyperlinking them

I have 3 options in the header of my page recent,popular and feature. I have written a function as follows : function category_recent(){ $cate = get_the_category(); $current_cat_id = ...
1
vote
3answers
891 views

Not sure how to debug: Send specific users an email when posts are published

I've got the following code, which is supposed to run when a new post is published for the first time, check if a custom field 'specific_users' has data (this uses Advanced Custom Fields), and if so, ...
0
votes
0answers
8 views

Link to a remote media library

I have been googling a lot about this issue and I cannot find a solution. I have an old website with a media library that is a bit over than 40Gb. In the meanwhile I have done a brand new one with a ...
1
vote
0answers
549 views

Share media among different domains

I have multiple Wordpress instances that live on separate domains (not a multisite installation). Since they provide the same content in different languages I'd like to share the images among these ...
0
votes
1answer
17 views

CSS won't style output of wp_nav_menu() correctly

I'm tyring to create a theme with a horizontal menu that is dynamically streched to fill the container element. I use wp_nav_menu() to fetch a menu from the backend and style it via CSS. Here some ...
0
votes
0answers
6 views

Mobile layout/menu working on all devices, but Windows Phone

I came into a problem, which seems a bit too weird for me now. I have made the web site http://goo.gl/VDtmbk going into a mobile layout on handsets and this is working just fine on Android and iOS. ...
2
votes
1answer
22 views

How do i style the current menu anchor link's parent anchor link?

I have this code <div class="mainmenu"> <ul> <li><a href="#">Home</a></li> <li><a href="#">About</a></li> <li> <a ...
0
votes
1answer
384 views

Why is my script not working?

I know PHP, HTML, CSS and JavaScript but I'm kind of new when it comes to wordpress and digging in the source code. How ever I have made a very simple JavaScript Script. There is 1 .js file with alot ...
-2
votes
1answer
18 views

All posts showing same comments

I am working on a wordpress site, and I am facing a serious issue, I have posted a test comment on a post but same comment is showing on all posts instead of specific post can anyone help how can i ...
0
votes
2answers
11 views

WordPress root directory change + Theme directory change

I'd like to create the following structure for my WP installation: htdocs (base dir) wp (WordPress dir) themes (WordPress theme dir) plugins (WordPress plugin dir) upload index.php .htaccess So ...
0
votes
0answers
6 views

User only edit CPT with slug that matches username

I'm in a situation that necessitates I complete this project within a week. So any help or specific guidance to my question would greatly appreciated. Is it possible, without creating an incredible ...
0
votes
0answers
1 view

modify the events calendar for wordpress

need help with ( the events calendar ) for WordPress, I'm trying to add day of the week under the number but its adding 5 days of the week under each number. see example here http://imgur.com/9378mwf ...
1
vote
1answer
1k views

How to get Poster (thumbnail) Image of Video

I'm getting all videos using the function below and it's working fine. Now I want to get the videos Poster Image (Thumbnail Image) from that video. How can I get the video Image as thumbnail? I've ...
0
votes
1answer
16 views

Metabox not being added

what is wrong with my code ? why it doesnt add meta box ? add_action('admin_menu', 'clivern_plugin_top_menu'); function clivern_plugin_top_menu() { add_menu_page('My Custom Page', 'My Custom ...
0
votes
0answers
6 views

Manage multiple wordpress installs (Best Practice)

Our company has multiple blogging platforms on which some of our people post on. The list of platforms keeps on growing and so keeping everything up to date can be rather bothersome. So we were ...
0
votes
1answer
27 views
+100

Rewrite url without flushing the database?

Is it possible to create a rewrite in WP dynamically such that no flushing is needed? i.e. not storing the rewrite in the database? Only defined in my plugin code?
0
votes
1answer
64 views
+50

Display Authors Comments on Profile Page

Hi I am trying to display a authors comments on their profile page (author.php) however both codes I tried, seem to display everyone's comments. Also the second code method is suppose to link to the ...

15 30 50 per page