The server-side programming language that the WordPress core, plugins and themes are written in.

learn more… | top users | synonyms (1)

0
votes
2answers
278 views

Selectbox in admin panel function linking to CSS

I want to link the selectbox to my CSS. Like if I click an item on the list, the background of my header will change - the header's color is in the CSS. The selectbox isn't in the html but it's in ...
0
votes
1answer
16 views

Different layout on search page depending on category post

I would like to display different layouts for post with different categories on the search page: I tried with this code: <?php if(isset($_GET['the_category'])) { $type = ...
1
vote
1answer
40 views

apache cpu over 70% on localhost

i'm running a number of WP sites on my localhost WAMP on w8. I started to work on a new site, using Sass and Zurb Foundation using this template: http://jointswp.com/. the problem: During my work, ...
-2
votes
0answers
12 views

User registration with collect list of posts

i am pretty new to wordpress development. I have a wordpress site which contains a lot of posts (which are actually just images). I want that users can register on my site. After hey have registered, ...
2
votes
3answers
4k views

Setting custom cookies in Wordpress

I am trying to set cookies to re-route returning users to my a specific page within my Wordpress site. I'd like some advice with these 2 things: Where in the Wordpress php files should cookies be ...
0
votes
0answers
10 views

Responsive design iFrame in modal [on hold]

I'm loading a couple of modal windows containing iFrames The modal looks great on desktop and great when it contains no iFrame but the iframe loads off the left side of the screen - particularly a ...
1
vote
1answer
41 views

Show full posts in archive

I have an issue where I need to display the full posts in my archive page. E.G. I have >two posts and I would like to have EACH of them displayed in full in the archive page. Thanks! How would I do ...
2
votes
0answers
41 views

Display a query with multiple post types and same relationship on a single page

I am creating a client portal were my clients can maintain their projects and leave feedback in Wordpress. I have two custom post types called "Clients" and "Projects" and they each pull information ...
0
votes
1answer
19 views

conditionnal statement to show pagination

I'm using pagination in my website using wordpress, to navigate between posts from the same category. here is my code : <div class="article_single_prev_next"> <div ...
0
votes
1answer
18 views

Set cookie for visitor

I'm writing a new plugin that will allow visitor to vote. After a visitor rated a post, I'd like to block double voting. I think the better way to do it is using cookie, but of course I can't insert ...
0
votes
0answers
35 views

Pass jQuery value in PHP [on hold]

I'm using wordpress.org/plugins/easyreservations this plugin. I need to pass selected datepicker value in PHP form url. The value is in jQuery. I have tried using the code to display from date as echo ...
0
votes
4answers
455 views

need to check is blog page

I'm new one for Wordpress. I need to check in header file as, is it Blog Page or not? I checked. but I can't find the way. Help me, Pls.
3
votes
2answers
650 views

remove tags from posts in php

I feel like this should be a simple question, but I can't figure it out. If I have a post_id, how can I remove a particular tag from that post in php?? I know how to update meta information, but tag ...
1
vote
0answers
15 views

Single Product Navigation within Category for WooCommerce

I'm working on a website for a client who would like to have product navigation on each single product page. The navigation will go through each product within the category and when it reaches the ...
0
votes
2answers
9 views

How to show part of the_content?

i wanna show 20 chars of the_content i tried this but doesn't work for me . <?php $content = ''; $content = the_content(); $count_content = strlen($content); if($count_content > 20 ) { ...
0
votes
1answer
350 views

Woocommerce: Getting current user's postcode and state

I'm trying to access the current user's postcode and state however the following doesn't seem to be working anymore (even though it was working yesterday) Here's the code I have so far: <?php if ...
1
vote
0answers
10 views

add_theme_page to add_menu_page theme options convert

<?php /** * ILC Tabbed Settings Page */ add_action( 'init', 'ilc_admin_init' ); add_action( 'admin_menu', 'ilc_settings_page_init' ); function ilc_admin_init() { $settings = ...
1
vote
0answers
8 views

how to enable plugin menu on subsite of wordpress MU [on hold]

My problem is I already have one MU site and I want to give my user access to enable or disable there network enable plugin. Like the default appearance menu. Please guide me
1
vote
2answers
28 views

How to upload a media file via FTP and then create an attachment post with it?

I need to upload a very large video. I can not upload it via the built-in uploader since my upload_max_filesize is set to just 2M and I'm unable to override it (I've set the upload size to 50M and ...
1
vote
0answers
11 views

FOUND_ROWS() returns maximum rows in table [on hold]

I am pretty new to word press, but I am not understanding what I am doing wrong. According to this tutorial (http://dev.mysql.com/doc/refman/5.0/en/information-functions.html#function_found-rows) the ...
0
votes
1answer
33 views

Deactivate a plugin on wp version

I've creating a theme options page at the moment and was playing around with this function deactivate_plugins() I'm running wordpress 3.8.3 so running this code in my plugin should uninstall it. ...
1
vote
2answers
77 views

Load wordpress content in other domain

I've made some researches on google but can't get the right answer. I need to get my wordpress loops outside a domain using php file. For example: I have a website hosted with www.mysite.com using ...
0
votes
1answer
17 views

Wordpress with php 5.5 and zend opcache

I currently updated/upgraded my php to 5.5.11 and want to use the opcache that comes with it. I enabled the cache and added a few settings to php.ini zend_extension=/usr/lib/php5/20131313/opcache.so ...
0
votes
1answer
25 views

Create Logout Link Wordpress Admin Menu

I'm looking at creating a Logout link in the Wordpress admin menu that when clicked the user is logged out immediately. I don't want the Logout link to be a submenu of an existing menu, I just want ...
0
votes
0answers
31 views

How to separate HTML and Wordpress files

I want to separate the HTML and PHP code so that the HTML guys can easily work on their files without disturbing the PHP code, but couldn't find any proper solution or Start point to begin. Please ...
0
votes
2answers
552 views

items_wrap not working

I registered a wordpress menu this way: function nothing_register_menus() { register_nav_menu('header-menu',__( 'Header Menu' )); } add_action( 'init', 'nothing_register_menus' ); I am calling ...
1
vote
2answers
546 views

Specific Loop For 2 <div> Within Each <li>

I need to create a loop that can logically be described as the following for a carousel: Requirements: 3 Loops 2 Posts Per Loop No Duplicates Order by Post Date Visual: < Start Loop #1 > ...
1
vote
1answer
41 views

Making Quote Plugin more efficient

I've been working on this plugin the past couple of nights and have been jotting down idea's of how to improve it. My knowledge of php isn't the strongest and I'm learning as I go along most of the ...
-2
votes
0answers
24 views

PHP code inside a WP page echo<html code> problem [on hold]

I've activated a plugin to use php inside a wp page. It'works but if I need to use html code within a php block, that statement is not considered. I need it to fill a listbox from database. e.g. ...
0
votes
1answer
34 views

Saving an array to get_options

I'm trying to save an array to get_options in wordpress, I'm aware that I don't have to serialize the array due to get_options doing that. At the moment I don't get any success of failed message upon ...
0
votes
1answer
43 views

Enqueueing a code block from an options framework

I'm currently working with the Redux Framework to allow users of my theme to add additional CSS and JS code to their theme's header and footer, respectively. Redux stores this code in a global ...
0
votes
1answer
25 views

how to add a div inside wp_page_menu

Right now I'm using the <?php wp_page_menu('menu_class=nav'); ?> function, which gives this result: <div class="nav"> <ul> <li class="page_item ...
0
votes
2answers
550 views

Recent Posts slider, using WP_Query(), loads duplicate sliders

I have written a small piece of code for Wordpress that will show the most recent top 4 posts in a slider (the Filament Group Responsive Carousel). It works, displaying the posts and sliding them etc, ...
0
votes
1answer
500 views

Placing Ads after every 10th Post with Infinite Scroll

Hello at the moment what I have to do is load a couple of ads, some normal html and two are java script. I've tried the PHP method of this: <?php $postnum++; if($postnum%10 == 0) { ?> <div ...
0
votes
1answer
437 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
22 views

Get rid of this Strict Standards warning [closed]

I'm trying to get rid of this warning from my wordpress installation. Strict Standards: Only variables should be passed by reference in xxxxx on line 67 The line with the "faulty code" is this one ...
0
votes
3answers
348 views

How to store accumulate multiple option values in a single array using Options_API

I have created an option array that stores a series of options, along with their values. The problem is that I want to ACCUMULATE these options and store them in the options database. Meaning I would ...
0
votes
1answer
198 views

WordPress Errors after Host Migration

Total WordPress newb here, you guys. I recently moved WordPress files from BlueHost to GoDaddy. All was well on BlueHost. I moved the following files to GoDaddy. wp-content wp-admin wp-include All ...
0
votes
2answers
32 views

Duplicate domain database to local - How?

I've noticed that my process is rather slow and i'd like to speed it up. I want to be able to duplicate my database from my domain which is blueharlequin.com and work locally thus speeding up the ...
0
votes
1answer
16 views

Permission error on plugin save

When I pass a quote to the input field and save it I get this error message in wordpress - I'm using the latest installation version. Error "You do not have sufficient permissions to access this ...
0
votes
1answer
41 views

Allow html in excerpt

Here is my excerpt code. // Generate custom excerpt length function wpbx_excerpt_length($length) { return 300; } add_filter('excerpt_length', 'wpbx_excerpt_length'); How do I allow html like ...
0
votes
0answers
21 views

Let users upload image(s) to the post from front end

I want to enable logged in users (Wordpress) to submit posts from front end (among with other data). My form is working great, I add custom post meta data which I later display on custom post page. ...
0
votes
1answer
380 views

Issue displaying multiple TinyMCE editors with WPAlchemy

I have a custom post type with a WPAlchemy admin meta box class including multiple textareas with TinyMCE editors(for adding content to the custom post template). I've gotten the editors to display ...
0
votes
0answers
16 views

Shortcode error using PHP [closed]

I am trying to insert a button that links to the contact page in the header of a site i am working on. I am not to up on php but this is the code i have entered but it does not work : <?php ...
0
votes
2answers
1k views

How build a custom login/register form with error handling?

So, I'm working on a plugin in which I'm making a custom page containing a login form as well as one for user registration; I have the forms built and operational, below is my code. <!-- Begin ...
-1
votes
0answers
34 views

Advanced custom field - custom field of post object extracted only the first time [closed]

2 posttypes books and stores where stores is postobject for books. in below all posts are displayed ...with correct storename bookcode & bookinfo for all posts but the storeurl is extracted ...
0
votes
1answer
464 views

How can I list only Subcategories in Woocommerce

So I have been able to list all the categories in woocommerce, but I am having trouble trying to list the subcategories of the category 'bathrooms'. Does anyone have any idea how I can achieve this? ...
1
vote
1answer
17 views

Wordpress Scripts Being Loaded in Footer

I've bought a theme for a Wordpress site. I noticed that the theme author has added the javascript to the footer for load time, but as I use Gravity forms, I understand that some of scripts need to ...
0
votes
1answer
25 views

Query seems to be duplicated

I'm just hit a development brick wall and can't seem to find a solution to this problem. I've running two WP_Query's the aim is one displays premium stockists and the other one displays the none ...
0
votes
1answer
1k views

Easy Nivo Slider with NextGen Gallery - add caption/description

I have downloaded and installed Easy Nivo Slider and incorporated it with Next Gen Gallery. I got it up and running, but I was wondering if anyone was able to get the "caption" / description to ...