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

learn more… | top users | synonyms (1)

0
votes
1answer
10 views

conditional: if is page, and all subpages

What I'm currently trying to achieve is displaying certain menus on certain pages using one template and conditional statements, like so: if (is_page('donate')){ wp_nav_menu(array( 'menu' ...
0
votes
1answer
222 views

How to link a lightbox thumbnail to a post instead of opening the lightbox

On my website portfolio: http://smalldotdesign.com/portfolio/ I use a heavily modified version of the Swatch theme from Woo Themes. The theme makes the thumbnails for my portfolio pieces link to the ...
0
votes
1answer
15 views

Trouble Installing Wordpress Get PHP Not Running Answer

I have seen this topic discussed several places on the internet, both in the Wordpress official forums and on individuals' blogs. Despite having worked through some of the suggestions, I am still ...
1
vote
2answers
963 views

WooCommerce - Fixed quantity of a product

I am trying to accomplish a thing on WooCommerce that I can not find any information about. It is like the following scenario: I sell screws and have 1500 in stock. I would like the customer to ...
0
votes
1answer
9 views

wp nav menu: show submenu below li item

I'm trying to figure out if it's possible to show the submenu's outside of the relevant li tag. For example, this php: wp_nav_menu(array( 'menu' => 'side', 'container' => false, ...
0
votes
1answer
10 views

Query multiple custom post types in single loop

I'm aware there are several other posts that cover similar ground to what I'm about to ask. I have three custom post types running, in addition to 'posts'. I want to run a loop that pulls all posts ...
0
votes
1answer
13 views

wp nav menu: add attributes to menu items [duplicate]

I'm trying to figure out if it's possible to attach an attribute to a wp nav menu item. To demonstrate, this php: <?php wp_nav_menu(array( 'menu' => 'main', 'container' => ...
-1
votes
1answer
46 views

problem with php function error

Hi I seem to get this message Warning: Creating default object from empty value in C:\xampp\htdocs\wp-content\themes\knowledgepress\lib\ticket-functions.php on line 851 However looking at the ...
0
votes
0answers
9 views

wordpress admin asks password after logged in ssl site

i am an wordpress developer. i am currently working in a project which is ssl site. once i logged into any page of the wordpress as admin and when i click the edit link to edit the page, it asks ...
0
votes
2answers
197 views

Get unique post in parent category

I have a parent category and several child categories. I also have several posts that belong to the child categories. Each post can be belong to several categories. I want to know how to query the ...
0
votes
1answer
23 views

How can I exclude a dynamic URL to show a popup created using 'Wordpress Popup' plugin

That might be a long shot, but I though I should give it a chance. I am using WordPress Popup in order to show a popup when a user lands on specific pages on the website. You create a popup and you ...
0
votes
0answers
18 views

How to delete in the pages the pre tag added automatically by Wordpress

i have been looking around but there is not a specific answer to my issue. I have set up a slideshow by Wordpress, then i paste the short code in the page where i want to display. The slideshow is ...
0
votes
1answer
305 views

CSS images don't show up with bloginfo

I'm new to WP and PHP and I'm trying to convert my 'old' HTML theme into a WP theme. I created my index.php page and linked it to the style.css. I have some images in the css and, from what I've read, ...
0
votes
2answers
37 views

Get used terms by an author as array of strings

I am using list_author_used_terms function below to get the terms used by a specific author (terms of a custom taxonomy 'wossom' for a custom post type 'aya-bi-aya'). function ...
1
vote
2answers
286 views

How to use nonce with front end submission form?

Thanks to a variety of posts on here I've managed to put together a front end submission form. After about 24 hours of tweaking I've finally got everything working including a redirect to a 'success' ...
0
votes
1answer
36 views

Display selected parts from selected pages on the frontpage?

I'm build a site for my company and want to display four (of my choise) of our special deals on our frontpage. A special deal is a page. I want to grab: Featured Image Page Title Price (taking from ...
0
votes
2answers
152 views

Get Admin Email Address From External PHP page

I am setting up a "built in" contact form that I need to pull the administrators email address from an external php page. For instance, my form action="path/to/process_form.php" Within that ...
0
votes
1answer
183 views

How to Sort posts by Vote Count?

Does anyone know how to automatically sort posts by Vote Count? I am using a plugin called WP Voting where a visitor can vote on a post. The plugin keeps track of how many votes each post has. The ...
0
votes
1answer
33 views

Object of class WP_Error could not be converted to string [closed]

After installing a SSL certificate and changing all the links to https, the images on my website https://agoracommodities.com are not showing up. When I go into Dashboard-Media-Library and choose any ...
0
votes
1answer
34 views

images in wordpress themes

I am developin a theme in php using wordpress.I want to display images on the website . so my question is what will be the best practise 1)store the image itself in a table using an "image" or ...
1
vote
1answer
50 views

Why Better WP security plugin returns 418 I'm a Teapot “error”?

I am working on the Wordpress website and all of a sudden after deploying it on the server, I started seeing a problem where some of the pages on my website return 418 I'm a Teapot as Response status ...
0
votes
0answers
19 views

Load loop in external php file, ajax loading posts

Why does my loop always return "no posts" ? I've included all necessary files it seems. I'd like to use this page for ajax calls, but I cannot get it to work as a normal loop. If I use get_posts it ...
0
votes
0answers
14 views

GD Star Rating plug-in: Altering Dynamic Cascading Style Sheet (Remove Thumbs Down)

I’m in the midst of creating a page that allows users to vote for one of two competing images. I’ve used the GD Star Rating plug-in for WordPress in the past, but am struggling with altering the ...
0
votes
1answer
36 views

Infinite Scroll Plugin: How to first show 6 posts and then 2 posts thereafter with Infinite Scroll Plugin?

I am using the Infinite Scroll Plugin and initially load 6 posts onto the page. After the user hits "Show More" which is the pagination buttons on the page, I would like for 2 posts to be displayed ...
0
votes
2answers
111 views

Force string into signup form

I am running WP multi-site and BP. The plugin in question is Anti-Splog by WPMUDEV. They have advised they do not support customisations. Anti-Splog tries to limit spam blogs from appearing on your ...
0
votes
2answers
125 views

Get category id when SEO URL is turned on

<?php /* Plugin Name: Members */ function myFilter2($query) { if ($query->is_category) { $currently_listing_categories = ...
0
votes
3answers
1k views

Create post from form with image

I found this wonderdul script that @Bainternet here at Wordpress Answers created, that makes it possible to attach images into posts from a html form.. I tried to combine in into my "html form to ...
0
votes
0answers
33 views

featured post show in category base

i have 2 featured post in 1 div id, 1 big class and 1 small class . i want big featured div are post in category base.. big featured post code show in below. <div class="main_feat"> ...
0
votes
1answer
19 views

Update Custom Field on Imported Post Creation

So I've created a function that updates several custom fields in a post when the post is created. The idea is to sanitize this information so that I can easily use it for other purposes. The ...
0
votes
1answer
165 views

Different registration form for different roles

I have customised the worpress registration page by adding new fields using the Cimy User Extra Fields plugin so my site is now fine for allowing users to register as contributors. I now want to ...
-1
votes
1answer
57 views

How to create Down Vote button in functions.php [closed]

I just read your answer How to enable users to down-vote in this simple voting counter (that uses the post meta)? regarding the creation of a down vote functionality for WordPress with PHP and jQuery ...
0
votes
2answers
123 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 ...
2
votes
1answer
49 views

Why Can't PHPUnit UnitTest My Wordpress Website

I have been researching this issue for days and although many people ask this question I never found a clear and concise answer. I am running: PHP Unit: Version 3.7.21 WordPress: Version 3.5.1 OS: ...
0
votes
1answer
17 views

How to check “From Email” via WordPress before an email is sent

Is it possible to check an email from email via WordPress before an email is sent? I'm working on a phpmailer plugin to send WordPress email via Amazon SES (which requires all emails to be verified). ...
0
votes
0answers
24 views

Pass a variable between WordPress Custom login and BuddyPress registration page

I am coding a custom WordPress template that has to be also BuddyPress compatible. Actually when BuddyPress is Disabled my custom login/registration form works without problems but, as soon as I ...
1
vote
1answer
108 views

Sort by page information by Ascending Numbers

Basically I have a problem that I have details being pulled from advanced custom fields and I currently have them ordered by page title in ascending order. However, instead of ordering them Ascending ...
0
votes
1answer
13 views

How to exclude specific category from the get_the_category(); array

In my loop I've added: <?php $categories = get_the_category(); $separator = ' '; $output = ''; if($categories){ foreach($categories as $category) { $output .= '<span ...
0
votes
2answers
25 views

Why I can download any file except PHP files from a URL but I can download any from another site?

all, I've been struggling with this for the past two days, I just can't find the answer - sorry if I post this in the wrong site but this is the best option I could think of. I have some problems ...
0
votes
1answer
245 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
2answers
2k views

Show values of custom field created with ACF on a page

Im using ACF to create custom fields. One of them is a list of checkboxes that display some options (option1, option2, option3....). and what i need is to show these options on a page in a list like ...
0
votes
1answer
18 views

Shrinktheweb plugin problem

I've added the following code to a page: <?php echo do_shortcode("[thumb]'".bp_profile_field_data('field=2')."'[/thumb]"); ?> This pulls a url from my database, and it should, according to my ...
-1
votes
0answers
15 views

Add php to $args [format] (php within php) [closed]

How can I add an the following if statement to the $args['format'] below. <?php if ( has_post_thumbnail() ) { ?> #_LOCATIONIMAGE <?php } else { ?> <img src="<?php ...
0
votes
1answer
19 views

Update Wordpress Custom Field with AJAX on cached page

I'm new to ajax am trying to create a simple hit counter that updates a custom field in Wordpress after the page loads. The page is cached, so any attempts to use PHP alone will not work. I'd like ...
0
votes
1answer
8 views

Should I use Wordpress to skin a database website?

I am going to start programming a website which allows users to post adverts for aircraft for sale. (Think autotrader for planes). It will be free to use. There are a few websites that do this already ...
0
votes
2answers
28 views

how to get page id of a page using page slug

Im pretty new to wordpress and I was wondering if I could get a page id with it's slug. Is it possible please let me know.
0
votes
2answers
32 views

Fatal Errors on pluggable.php

I was looking to change the "Wordpress" name in all of my sent mail. In the past I have customized my Wordpress backend to display my desired email. But I have downloaded a new plugin that has altered ...
0
votes
1answer
17 views

Common abstract class for plugins

I have a few plugins and intend to move them to a very common base with an abstract class. The issue is that even if I apply solutions in order to avoid class duplications ( like EarnestoDev's answer ...
1
vote
2answers
207 views

Custom gallery in wp3.5

I used a tutorial I found for a slick little custom gallery in 3.4, but upon upgrade to 3.5 it no longer works. I'm trying to learn php still and can't seem to get this working again, as I either get ...
0
votes
1answer
15 views

Fatal Error wp-settings.php on line 119

receiving this message after a post update: Warning: require(/home/thomwhite/wparch.com/wp-includes/post-template.php) [function.require]: failed to open stream: Permission denied in ...
0
votes
1answer
12 views

Get a list of galleries from an album in NextGEN Gallery

I want to get a list of galleries of a certain album. Than I would create a link to this galleries. How do I get the list of galleries in PHP? I saw that there is some code like global $nggdb; ...

1 2 3 4 5 36