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

learn more… | top users | synonyms (1)

0
votes
0answers
135 views

How to exclude 2 Portfolio Categories from page?

I want to exclude 2 Portfolio categories (IDs 4 & 23) from a page using the code below but it still displays all categories. Similar code works for 'Posts' but not for 'Port' - can anyone see what ...
0
votes
0answers
49 views

Wordpress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache

I have been working on a theme for a few days and when I realized my JS file for my theme customizer wasn't updating I decided to clear the cookies and cache, and wow that was problematic. As soon as ...
-1
votes
1answer
54 views

Creating Features List in Wordpress Post

I want to create features list in wordpress post. I know how to do in CSS but I was wondering if it can be done by using a short code or a plugin?. Like [features_list] Item 1 Item 2 [/features_list] ...
0
votes
2answers
49 views

Display message depending on capability outside loop

I want to display a unique message on the post (single.php) page outside the loop on author box. I want the message to be different depending on the author's capabilities. So for instance, if the ...
0
votes
1answer
883 views

How to edit php code in WordPress Post file?

I have a wordpress page. In that wordpress page, user will have access to the following Window to Publish their Post in to the webpage. If the user enters an URL in any of the three filed I have ...
0
votes
0answers
810 views

Host does not allow remote connection, so how do I transfer data to my WordPress site?

I spent the last week trying to get my PHP code on my website to connect to my remote "personal" computer to display some data on a webpage. I just found out today from my web host (ipage) "our ...
1
vote
0answers
99 views

Way to add captions to gallery images by code

I am creating posts by using wp_insert_post function. It works fine as I provide values in array required. Sometimes it is required to create a post having gallery. Without any problem, it also works ...
0
votes
3answers
234 views

Display random image url from list of input values

I have created an options page in my WordPress theme that allows the user to input a url/upload an image to an input field. The field has the name headerimage_options[image] and when it is populated ...
0
votes
1answer
164 views

How to change pagination base from slash to query form?

Can this function... function custom_pagination_base() { global $wp_rewrite; $wp_rewrite->pagination_base = 'p'; $wp_rewrite->flush_rules(); } add_action( 'init', 'custom_pagination_base' ); ...
1
vote
0answers
948 views

PHP Fatal error: Out of memory / Unknown Error On Line 0 [closed]

I know this has been posted a number of times but I'm getting really stuck so thought I would see if anyone can help. My error logs keep getting these errors [24-Apr-2013 01:25:44] PHP Fatal error: ...
0
votes
0answers
63 views

WordPress won't display errors at all

I have been having constant issue with WordPress not displaying errors at all and I have no clue what is wrong. PHP errors display on non-wordpress related pages. Debugging is turned on. Display ...
0
votes
0answers
116 views

User driven content problems

I am trying to build a website that will allow users to post from the front end. I need to be able to have the user enter a title, a category, and tags. For the content of the post, I would ideally ...
0
votes
1answer
149 views

Trying to post information from a remote database to wordpress page

I'm fairly new to Wordpress and looking for some help. Goal: I would like to stream data from my personal computer's Mysql database and display it on a webpage in my offsite Wordpress hosted site. ...
0
votes
1answer
255 views

Wp favorites posts by specific category? [closed]

Well, let me get to the point, im trying to Display a specific category using the Wp favorites posts plugin this is what im adding $category_id = get_cat_ID('news'); but it doesn't seem to work it ...
0
votes
0answers
125 views

How do I link a button I created in theme customizer to a function?

I created a button in the theme customizer and I want to use it to execute a function? All I can find is using controls to add theme settings such as CSS and text. Although this button is to clear out ...
1
vote
1answer
133 views

Add user settings to specific roles

Is it possible to do this? I already know about get current_user_can(), which does not work like I need. I'd like to be able to use an array if there are multiple roles. // Check roles to only add ...
0
votes
0answers
48 views

How can i retrive the movies, trailers, news in a single page using search

How can i retrive that. For a few month i build a website, and i want to make it diferent For the search i have 3 post type, and i have for each diferent themes for display - Movies - Trailers - ...
1
vote
1answer
314 views

List of all theme customizer control types?

I have been looking through the theme customization API documentation and google to simply find out the names of the control types already built in to the theme customizer. More specifically I am ...
0
votes
1answer
186 views

How to add button to top of theme customizer?

I am trying to figure out how exactly I can add a button to the top of the theme customizer. The spot I am talking about is where the "close" and "save" buttons are. The ones that are above everything ...
1
vote
2answers
1k 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 > ...
0
votes
1answer
58 views

Exclude category

I want to exclude a category from showing in a function, but cannot figure out how to do it for my specific code as below. I want to make it so that any post that is in the "featured" category, does ...
0
votes
2answers
832 views

Creating a press page for our project

Over time our project got some good press: press releases, interviews, media appearances Now I want to create a "press page" (something like this). Requirements: is easy to update - everyone can ...
0
votes
1answer
67 views

WP white screen of death after duping a site that works fine on same server

I have simply duped a site that runs absolutely fine on a separate domain into a sub directory of another domain for development purposes. I have zipped the /httpdocs/ directory excluding cache and ...
-1
votes
1answer
91 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 ...
1
vote
1answer
1k views

Wp favorite posts get user favorites in profile using buddypress [closed]

Im currently encountering a problem i display user wp favorites posts fine, but the issue is i wont display them, once users are logged out it says " no posts have been made" while each user has ...
0
votes
1answer
72 views

Using a loop to build and update widgets

So I have a widget Im making which allows users to update 4 switches. Each switch has the same fields, name, description, price, amount so I decided to build the widget using a for loop instead of ...
0
votes
1answer
94 views

Custom Post not working as expected

NEW EDIT I solved it, as written in answer, the problem where that variables are 'forgotten' (not so techy I know, sorry for this) when function starts. EDIT: I found the problem is this: ...
0
votes
0answers
75 views

jQuery vs. $ - Creating jQuery scripts in JavaScript in WordPress using External Libraries

I am trying to utilize Trent Richardson's Date Time Picker (see here). I am trying to get the selected time when the popup closes, so I am using the following code (in an external .js file): ...
0
votes
0answers
63 views

Wordpress adding in site URL to header links

A little information: I am developing a one page theme that uses posts as sections on the main page. I have created code that allows users to add a menu item in the post page from a meta box when they ...
1
vote
1answer
756 views

Using loop pagination on single.php

I want the main front-page loop to show in a section on both index.php AND single.php templates, with pagination. Pagination works fine on the homepage, but not on single posts. This is the code ...
0
votes
1answer
95 views

Not able to call class in NHP framework

I have downloaded fresh framework and installed on my local server. I copied options folder and nhp-options.php inside my theme directory. Then I called the class globally by global $NHP_Options; ...
0
votes
1answer
85 views

How can I create a menu items from meta box based on users input

I have created a metabox that takes a name that the user can give as an additional name of their post. I am wondering how I can automatically create a menu item based on the name the user input into ...
1
vote
1answer
31 views

Trying to retrieve post meta

I have created a meta box that allows users to add an additional name/id to their post. From what I can tell it is adding the meta information correctly because when I edit a post that has a custom ...
3
votes
1answer
3k views

Menu Items Disappearing

I'm running WP 3.5.1 and I've a menu with about 100 items. When I add new items to the menu older ones disappear. I'm not running Suhosin or similar stuff. What can be the cause? Note: I'm on a ...
3
votes
5answers
8k views

How to stop form resubmission on page refresh

Hi I have a form that adds attachments to a post, however when the form posts it obviously doesn't show the post with the new attachment echoing "your file has been uploaded". When the user refreshes ...
0
votes
1answer
451 views

Get post meta retrieving wrong value

I created a custom meta box with a textbox where the user can enter a custom value in as an additional identification tag. I thought I had it right but when I try to retrieve the value it is giving me ...
1
vote
0answers
121 views

Using window.onload with Ubermenu

I am using a plugin to place this code on specific pages. But it is not firing correctly. Has anyone had experience working with Ubermenu, WP and jQuery? Do I have to call jQuery into my ...
3
votes
1answer
2k views

Displaying a WooCommerce product via PHP

Having a hard time composing a searchable query, so I apologize in advance if this has been covered. I know you can add WooCommerce products to a page or post via short code, but I have one section ...
0
votes
0answers
417 views

How can I clear the theme mod settings?

Ideally I am looking to add a button to the theme customizer that allows the theme to reset to default settings, although that may be asking for too much in one question so I am wonder if anyone knows ...
3
votes
2answers
497 views

How can I add dropdown widget/box to admin post page?

I am trying to figure out how to add a dropdown widget to the post page. The reason I ask is because I would like to be able to have a few different post classes that the user can select while making ...
1
vote
2answers
181 views

A solution to set metatags with my page generating plugin?

I have a plugin which generates a page automatically. Is there a way I can add functionality to this plugin which would allow me to set the meta description, keywords, and title for the page? I've ...
-1
votes
1answer
3k views

Woocommerce price including tax with formatting from options

Af first, I'm not a programmer. In Woocommerce I need to display both product prices, including tax and excluding tax. Code in price.php <?php if ( $price_html = $product->get_price_html() ) : ...
0
votes
1answer
127 views

Different Subdomain changes page content

I know it seems to be a strange ask here but hear me out. I have a client who has several subdomains for different countries, such as us.example.com and uk.example.com. I want to change one or two ...
0
votes
1answer
267 views

Add “alt” Attribute to GD Star Rating <img> Tags

I have try over a week to validate 4 images that are retrieved by a code with GD Star Rating plugin This is the code i have: wp_gdsr_render_rating_results(array('template_id' => 49, 'rows' => ...
0
votes
0answers
158 views

Cant get theme to change footer color through theme customizer

I am having an issue trying to configure the theme I am working on to allow the footer color to be changed. So far all of my other options work so I am geussing it is an issue with the way I am ...
0
votes
0answers
113 views

Wordpress not showing full text in feed

I have been reading around and I cannot figure out why (even with the full text option checked in settings) that my feed will only display excerpts of posts instead of full posts. Any ideas? here is ...
0
votes
2answers
241 views

Additional image sizes are not being generated

When I upload an image through the admin interface, the image is only saved at full-size. The other sizes are configured to their default values in Settings > Media. The automatic resized versions are ...
0
votes
2answers
343 views

Theme not calling Jquery properly

I am developing a theme and I have called jquery along with other JS files from a theme-enqueue.php file. For some reason only the Jquery file that is hosted on googles servers is adding the theme URL ...
1
vote
1answer
37 views

3 blogs same installation, without WP MU

I've to create 3 blogs (different DOMAINS) on the same wordpress installation (I cannot use WP MU, unfortunately) so I came out with the idea that I could use categories, instead, so... every blog has ...
2
votes
1answer
321 views

wordpress custom post type remove duplicate menu item

I've registered a new content type with following - register_post_type('news', array( 'labels' => array( 'name' => __( 'News'), 'singular_name' => __( 'News'), ...