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

learn more… | top users | synonyms (1)

0
votes
0answers
12 views

How to obtain WordPress code hint using Aptana 3 with WP Bundle?

I am very new in PHP and WordPress development (I came from Java and C#) and I have the following doubt about how correctly optain code hint in Aptana. I have installed Aptana 3 and the WordPress ...
0
votes
0answers
52 views

Search inside a custom taxonomy for multiple words doesn't return anything

My goal is to perform a search inside a custom taxonomy field. The page is an archive including a lot of books and magazines, and they have to be searched through, let's say, 'Authors','Title' and ...
0
votes
1answer
37 views

Get latest post from all categories except one

I trying to get all the latest post from every category, but I discovered I must ignore one of them. I don't want to show it at all. My problem is I don't know what syntax to write ifelse in this ...
0
votes
2answers
47 views

How to determine if the sidebar is empty? Or not active?

I used is_sidebar_active('NameOfSidebar'), but it seems not working. It returns false all the time. I wanna have a condition that goes like this if('sidebar is not active'){ //must not display the ...
0
votes
0answers
33 views

Perform internal redirect in WordPress?

Let say I have an existing page named "bar", e.g. http://www.example.com/bar I want to write a plugin, which when called, will load the content exactly same as bar (not just post_content, but the ...
0
votes
0answers
28 views

Issues with Spanish characters in alphabetical index of posts [closed]

I am trying to get an alphabetical index of posts that allows users to view posts categorized by title, but my posts are titled in Spanish. I've set it up by creating a custom taxonomy that ...
0
votes
1answer
34 views

Remove echo from shortcode

I've just started playing with shortcodes and due to my lack of php knowledge I am unable to figure out how to make this shortcode work without using php echo. Can anyone help me revise my code? // ...
0
votes
0answers
45 views

Fatal error: Call to a member function get_results() on a non-object in on line 26

Ok so I am trying to chain select boxes from a my database. First select box grabs the values just fine. If I hard code all of the select boxes they all return values and as expected do not interact ...
-1
votes
0answers
6 views

Form Action not working, how ever, if I hit enter in the addr bar, it takes to the correct page. need help

This is a ITRO Pop-up. Form Action not working, how ever, if I hit enter in the addr bar, without making any change to the URL, it takes to the correct page. NAME: ...
0
votes
0answers
8 views

How to use the Aptana WordPress bundle to navigate into my code when I develop?

I am very new in WordPress development and I have the following problem using Aptana 3. I have installed the WordPress bundle on Aptana 3 and I have imported an entire WP website as a project into my ...
0
votes
0answers
26 views

Getting attributes from custom_post input

I'm having custom field created like that: function woocommerce_form_field_numeric_2( $key, $args, $value = '' ) { global $woocommerce; $defaults = array( 'type' => 'number', 'label' => '', ...
0
votes
2answers
22 views

How to exclude post from being queried based on custom meta value

I am building a reviewing system for user-submitted posts on my website. I have a page called page-review.php which displays the oldest post of the "pending review" category. This is to ensure that ...
-1
votes
2answers
24 views

How to modify this function to exclude also the post belonging to a specific category?

I am very new in WordPress development and I have the folglowing problem. I use this function (declared into the functions.php file of my theme) to modify the main query in such a way that the post ...
3
votes
2answers
129 views

username_exists() function can't be access without logging in

I'm using the following function in functions.php to check if a username exists in the DB function check_username() { $username = $_POST['user']; if ( username_exists( $username ) ) { ...
-1
votes
0answers
7 views

'Latest Video Post' does not post

My 'Latest Video Post' at the bottom/ footer of the page does not post videos. It is linked to my 'Articles in Boosting Creativity' page. I don't know anything about writing or reading code. I went to ...
0
votes
1answer
15 views

Saving a post ID to use in a form elsewhere on website

I am trying to save a certain queried post's ID to pass on in a form outside of my loop. To be more specific. I have one file named review.php, this file contains a Wordpress Loop which queries one ...
0
votes
0answers
23 views

wordpress - ajax communication

This is the first time I do the ajax and I must confess that I am confused. What I want to do is to take the value of 3 Select html to make a request to my database that'll get me a score according to ...
0
votes
1answer
15 views

Unable to Call More than One Meta Box Output

I have a custom meta box with multiple text fields. I use this to call the information in the first box: <?php the_post(); echo get_post_meta( get_the_ID(), 'dbt_text', true ); ?> And this to ...
0
votes
1answer
57 views

Exclude Custom Post Type from shared Custom Taxonomy

I have a few custom post types and two of them are sharing a custom taxonomy. Is there a way to list the terms of that taxonomy for only one of the custom post types? At the moment I can get a list ...
0
votes
0answers
4 views

Run shortcodes in custom setting value that holds user supplied HTML in my header?

My plugin I built for a client shows a special header type banner/head section for a visitor on every nTH visit to the site. I have a setting where the user picks the number for nTH visit to show ...
0
votes
0answers
16 views

Cron Job to Delete over 30 days old post from post type

This is my first time creating a WP cron job and I would like to have someone else review it for mistakes. I wrote this cron job to delete temporary wishlists that are over 30 days old. The wishlists ...
0
votes
1answer
14 views

wpdb getting avatars and author url

Running an SQL query to pull authors by votes they've received on posts. @bonger helped me out on my first post and helped me get this working great, but I created this new question since it's a ...
0
votes
2answers
48 views

Problems with plugin that fetches data from database with ajax

After some answers I have edited my code. This is my plugin structure stpl1 stpl1.php getuser.php In stpl1.php I have the following code: <?php /* Plugin Name: Wordpress Plugin Stijn 1 ...
2
votes
1answer
26 views

Is there a way for a plugin to add an attribute to the <html> tag of a theme?

I'm currently working on an appcache plugin for WordPress. One thing that it should do is add a manifest reference in the <html> tag of the site. It has to resemble something like this: ...
0
votes
1answer
19 views

if conditional in sidebar plugin Password content shortcode

I have this code [][/] on page and work perfectly! so i want now if i can in sidebar check if the form is properly completed on the page and then will echo some word in sidebar. for example something ...
1
vote
1answer
33 views

How to get media objects

I am busy with a loop to return all media in the medialibrary in objects. I figured out how to get the images ( with wp_get_attachment_image('$mediaID') where the $mediaID is the id of the image ) ...
0
votes
0answers
17 views

How to display the post of child custom taxonomy but not that post in parent?

I want the archive page of custom page having custom post type in order with custom taxonomy. like -parent1_taxonomy -child1_taxonomy -child1_taxonomy_post1 -child1_taxonomy_post2 ...
0
votes
0answers
45 views

AJAX doesn't pass variables to the php function in the plugin

I'm creating a plugin that at a certain point has to use AJAX to pass information to php depending on the events fired by front end user on the different page. The event itself is when the user ...
1
vote
0answers
70 views

How to set a custom path, for ajax image upload folder in admin?

I am coding my first Wordpress plugin that handles some data for a custom (shop-like) post type. It also has an image uploader within a metabox, where you simply drag in your images and it ...
-1
votes
0answers
28 views

A ShortCode Within a ShortCode. INCEPTION [duplicate]

Problem I have a plugin called WP-Filebase https://wordpress.org/plugins/wp-filebase/ & http://wpfilebase.com/, which allows a user to upload media and it has a shortcode to allow the user to ...
1
vote
1answer
76 views

Some doubts about how the main query and the custom query works in this custom theme?

I am pretty new in WordPress theme development and I'm not so into PHP (I came from Java and C#) and have the following situation in this custom theme As you can see in the homepage I first show a ...
0
votes
0answers
26 views

How to display Parent categories and Child Categories?

I struggleing to find the best way to develop the below. Basically my website will have a landing page on the site (Sports Landing Page) and when the user clicks on a category on that page eg ...
0
votes
2answers
23 views

Wordpress - registering sidebar and adding a button directly after .textwidget

I have registered a new widget area, code as below and want to add a button after the .textwidget, however cannot seem to do it properly. Adding it after the </li> results in the button not ...
0
votes
1answer
28 views

What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?

I am pretty new in WordPress theme development and I have the following doubt. I am working on this custom theme: http://lnx.asper-eritrea.com/ Into this website upper horizontal main menu I have a ...
0
votes
1answer
38 views

What exactly do this function declared into functions.php file of a WP theme?

someone can help me to understand what exactly do this function declared into the functions.php file of a theme? function exclude_featured_tag( $query ) { if ( $query->is_home() && ...
0
votes
0answers
14 views

Some doubts about the WP development IDE, how to obtain the IDE code assistance? [duplicate]

I am pretty new in WordPress theme\plugin development (I came from Java and C#) and I have the following doubt about the IDE and how to correctly handle the WordPress development process. My main ...
0
votes
2answers
45 views

My php code is not being executed

I have a wordpress page that has this code in the text editor part of a web page: This page creates a cookie and houses a etst link that is only accessible to the holder of the cookie. &nbsp; ...
0
votes
0answers
26 views

Using Ajax to autocomplete a form with data from db

I'm struggling to get the following: User fills out personal number Other input gets autocompleted with data from database As I have never made a plugin, help is greatly appreciated, my database ...
0
votes
2answers
47 views

How to cancel Wordpress' action/filter when using OOP with anonymous callback

Most of the wordpress plugins I found is functions based, for example, the offical akismet plugin function akismet_init() { global $wpcom_api_key, $akismet_api_host, $akismet_api_port; // ...
0
votes
2answers
48 views

Looking to exclude blog posts from category Previous/Next buttons

I'm working on some conditional elements here and I thought I had it but it's still not working right. You can see my site here. What I've done is displayed only category Legal Libation Columns (98) ...
1
vote
1answer
100 views

Has anyone tried putting PHP ActiveRecord on Wordpress?

I have worked with Ruby on Rails and I was looking for some code that did something close to the wonderfull RoR's ActiveRecord. I stepped by this site. Its PHP-ActiveRecord! I found it amazing, and ...
0
votes
0answers
21 views

Getting the excerpt from latest blog post, could someone please explain?

I know this question has been asked a bunch, but due to my newness to Wordpress, nothing I came across was working for me. I finally found a question with a chunk of code that actually displayed ...
1
vote
1answer
42 views

How to add a class to the attachment images

When I'm in the Wordpress editor and I add an external image with the 'img' button, my html result wil be like this: <img src="http://example.com/image.jpg" alt="image" /> How can ...
0
votes
1answer
24 views

The user can only see their own profile

I would like it if I'm logged in as an administrator can look at the profiles of all users if they are logged in as a subscriber, for example, "toni123456" Can I see only your profile "toni123456". ...
0
votes
3answers
30 views

retrieve post data and insert it in seperate static html page without Wordpress

I have a blog which runs on Wordpress and inside the Wordpress environment I'm fine and know how to display specific blogposts etc. But beside I want to insert specific Blog-posts in a static HTML ...
0
votes
1answer
48 views

How to get values from wordpress listings and use them in javascript array?

I'm trying to get values (latitude, longitude and an image) from the WordPress database and put it into a javascript array. Unfortunately I'm a newbie at Javascript and PHP! Here is the code I have ...
0
votes
0answers
11 views

How to migrate the posts from an old custom legacy blog to a new WordPress website?

I have to migrate the posts of a very old custom legacy blog made in ASP (the posts are stored in a MySql table) into a new WordPress blog. So I need your help to find the smartest solution to do it, ...
1
vote
1answer
84 views

Edit tag cloud widget number

By default, the WordPress tag cloud widget has a set amount of 45 tags to display. This can be seen in the wp-includes/category-template.php file. By default, the WooCommerce plugin which I have ...
-2
votes
1answer
36 views

Child-theme suddenly stopped working [closed]

I have been working on a website using the twenty twelve theme. I was modifying the footer.php and when I refreshed my website, I noticed all the extra css I had add in my child theme was not ...
0
votes
3answers
63 views

Exclude posts from homepage having a specified tag

I am pretty new in WordPress development and I am trying to implement this custom theme that handle the so called featured posts As you can see in the posts area of the homepage I have the Articoli ...