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

learn more… | top users | synonyms (1)

1
vote
4answers
1k views

LESS compiler for Wordpress

can I compile some .less-files automatically by using Wordpress. I found just lessphp Thanks Ogni
0
votes
2answers
2k views

How to order posts by modified date without using 'query_posts'?

I have an example basic wordpress theme template here for you. First, please take a quick look at it to get an idea. <?php get_header(); ?> <div id="primary"> <div ...
0
votes
2answers
88 views

Wordpress Post HTML after Posting

I am writing a plugin for WordPress, one of the tasks I need to-do is send the HTML content of a new post to an e-mail address at the time of posting, I know I can use certain hooks to fire after the ...
-1
votes
2answers
114 views

What languages were used to build Wordpress? [closed]

Which programming languages were used to create WordPress?
0
votes
1answer
1k views

.htaccess on multisite and roots theme?

i install the Roots Theme and then convert my installation to multisite... so that wordpress add some code into the previous .htaccess with root settings. My .htaccess now looks like this and i'm ...
1
vote
2answers
312 views

Remove posts after a given amount of time

guys what I'm trying to do is run a series of if checks in the code before executing a series of functions and custom code. One of these if checks will check to see if a post already exists and if so ...
0
votes
2answers
1k views

How to display child page from specific parent page in homepage?

How to display child page from specific parent page in homepage ? This is my page structure Home About Us Hotel Category Hotel A Room 1 Room 2 Hotel B Room 1 Room 2 Hotel C ...
0
votes
2answers
284 views

Fetching review value using wpdb class

I'm generating an XML file using PHP for a website where they review tech products. In the XML file, I have to display the rating of products. For rating purposes, I'm using GD Star Rating plugin. ...
1
vote
2answers
782 views

wp_editor and WPAlchemy messes up tags when updating

when using wp_editor, I paste my text in the visual editor. If I switch to HTML editor, all of my tags are there. So far, no problem. When I update the thing, all of my tags appear in my visual editor ...
0
votes
1answer
121 views

Need help with simple “if statement” checks to output particlular CPT data depending on what client uploads/fills out

In short, Im not a master of PHP yet and Im not entirely sure how to place a series of checks (if statements) in my template so that it will know what to display depending on what the client ...
0
votes
1answer
440 views

Theme currently showing thumbnails, how to show full size?

My theme, Grisaille, currently shows thumbnails in the post preview on the "home" page. How do I make it so that full size images show both on the "home" page and on the individual post? ...
0
votes
1answer
1k views

Change Query Arguments (filter) with jQuery/Ajax or PHP?

I have a pretty complex wordpress-site for travelling. There's an "archive-hotels.php", a template for the custom-post-type "Hotels". Inside the CPT is a taxonomy called "City", so we can do this: ...
0
votes
1answer
204 views

How to fix vanilla comments extra iframe space

I am using the new vanilla comments on wordpress with my self hosted vanilla forums, but on every page, there is unnecesary iframe space. I was wondering how to fix that. My site is here and my forums ...
0
votes
2answers
550 views

Settings options not showing up on Sub Menu page in WordPress plugin

So I have a plugin with two user-customisable settings. (It's not complete but I'm getting the framework in place.) When the two settings are on the "general" settings page they work just fine... ...
3
votes
2answers
756 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 ...
2
votes
1answer
690 views

integrating external php library into wordpress- the right way

If I were to load a custom library into wordpress, what would be the best place to add it? Since there are a bunch of global vars defined at the top of the library, I would not want that to be done ...
0
votes
1answer
239 views

Where is this function's callback getting its arguments from?

This might be better suited to Stack Overflow, thought I'd try here first though. I was walking through this tutorial by Justin Tadlock and encountered the function below being used as the callback ...
1
vote
3answers
4k views

How to Insert Shortcodes into Theme?

I have content locker plugin. For locking contents, im using this shortcode: [wp-like-locker] Your locked content here... [/wp-like-locker] and I need lock every post on my blog. How could I ...
1
vote
1answer
415 views

How to Display Image Meta underneath EVERY image in EVERY post

First off, I want to say thank you for taking the time to even read this, I really do appreciate the help this site and it's community has given me thus far. i have looked forever to be able to ...
2
votes
1answer
1k views

How to strip non-alphanumeric characters, convert spaces to dashes, uppercase to lowercase in this context

I am using the Advanced Custom Fields plugin, which is very good. I am trying to take the output of one of the fields I created and give it the "permalink treatment", that is strip out ...
1
vote
1answer
431 views

$post object is null

I am trying to use the $post object from functions.php in my theme however if I attempt to var_dump($post) it returns NULL. Here is my code: function breadcrumb_navigation() { var_dump($post); ...
0
votes
1answer
141 views

List direct children of page

I am currently using the following function to list the children of a page, however the function recursively finds children of the children and I only want to list the direct children of ...
0
votes
1answer
196 views

Get permalink for a post from inside Wordpress and route to a related site

I built a mobile version of a wordpress site and added some PHP code in the wordpress index.php file to detect mobile users and HTTP-redirects them to m.website.com (which is not a wordpress ...
3
votes
4answers
2k views

Only get_posts of certain post formats

I'm trying to create a archive list with only my "normal" post format articles (not link, aside, quote, etc formats). How would I implement has_post_format( 'standard' ), or something similar, into ...
-1
votes
2answers
74 views

HTML in PHP problem [closed]

I have the following code but I always get an error, it's the first time I've tried to merge HTML with PHP: <?php if(get_field('post_image')) { echo '<img src="'. get_field('post_image') ...
2
votes
2answers
375 views

sql query to put quotes around numbers in img tag

I have quite a few old posts that contain an img tag with height and width with no double quotes around the numbers. For example: <img height=319 alt="" ...
0
votes
1answer
403 views

Wordpress automatically adding <!— --> html tag around PHP code

I was managing a site, taking over from a previous administrator. With his last breath, he changed something on the site, precisely on the login section: http://www.spiritualresponse.com/login/ I ...
0
votes
2answers
99 views

Is it possible to isolate and use Wordpress functions outside of wordpress

I'm seeing a lot of jobs on elance and vWorker for converting html to wordpress? what's the general process for doiing this? hunting and pecking through the codex? what happens when you get to some ...
0
votes
2answers
73 views

Unable to get posts with category on my page

I am using wordpress as my CMS. I am thinking, that the left panel has titles of my "posts" under its relevant category and the right side as the title of the post and its content. I have tried to ...
1
vote
1answer
214 views

Why is my cookie not unsetting upon logout? [closed]

if (is_user_logged_in()){ if(!isset($_COOKIE['alertuser'])){ // set cookie $timer = time()+86400; setcookie('alertuser', '1' $timer); // show alert ...
0
votes
1answer
161 views

Define specific category name in PHP

Might be a really simple question... I am trying to pull out a category name in PHP and display it on my page. I have multiple category sections on this page, and each need to pull their respected ...
1
vote
1answer
1k views

How to create a linked tag list in my sidebar

I'm looking for a solution to display a tag list that shows how many times the tag has been used in posts as well as link to a list of results. I found a php code snippet you posted on the Wordpress ...
0
votes
2answers
59 views

Sidebar doesnt get updated?

I was trying to edit a theme by updating the style.css of it. But I also needed to add some manual html to the sidebar like ul li's . I maintained the order and updated the html od sidebar within the ...
0
votes
1answer
410 views

Remove password protection from all posts

So I messed up my blog (QBobble). I had an SQL backup, fortunately, so I reinstalled Wordpress, and imported my SQL database. Unfortunately, it password protected all of my posts. I know that I can ...
0
votes
1answer
202 views

Wordpress: Displaying all the post tags from within a specific taxonomy's term

Okay so I understand that the default "Categories" is a taxonomy, and posts live within those categories. I created a new Taxonomy (like Categories) that houses a custom post type. The posts of that ...
-1
votes
1answer
408 views

PHP $_session is not work in wordpress

why PHP $_session is not working in wordpress my php code is session_start(); session_register('lang_opt'); $_SESSION['lang_opt'] = $_POST['lang_opt']; $mylang = $_SESSION['lang_opt']; echo ...
1
vote
1answer
64 views

running arbitrary php files

I have a hostgator wordpress site. My friend wrote two small php scripts to help us with a medial task we do a lot in our work, but he is currently hosting this script on his server; I want to host it ...
0
votes
3answers
2k views

How to load WP functions?

I have a mymail.php script which sends a email (I managed to do it using require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-includes/class-phpmailer.php' );.) and outputs a plain text string (Such as ...
0
votes
1answer
574 views

How does one programmatically manage posts from a external php script?

How does one create a post, assign it to a category, add tags to it and set the featured image from a PHP script that exists somewhere on disk (say /usr/local/process.php) and isn't part of the ...
0
votes
1answer
127 views

how to add datas in taxonomy to post with wp_insert_post

how to add datas in taxonomy to post with wp_insert_post this is my code but it is saved in my texonomy draft,why? i have given post_type=publish. $my_post = array( 'post_title' => ...
0
votes
2answers
869 views

how to insert content into my taxonomy

how to insert content into my taxonomy this code is correct or not? // Create post object $my_post = array( 'post_title' => 'My post', 'post_content' => 'This is my ...
1
vote
2answers
1k views

external wordpress pages using wp-blog-header

I am setting up a few sections of a website external to the core wordpress installation, but I still want to use the built in wpdb functions, and/or header files from wordpress. I follow the ...
1
vote
2answers
372 views

Clean URL permalink for custom post type

I have a custom content type of photo_group which is a collection of photos. I want to be able to go to mysite.com/photos and have that page dump out all of my photo groups. How can I do this ...
1
vote
2answers
362 views

How to Append to the_excerpt() Function

I have the following snippet of code: <?php>$more = '.....';?> <p class="extra"><?php the_excerpt(); ?></p> What I am trying to do is append the value of $more to ...
2
votes
1answer
56 views

How should I best target dynamically served content?

I am editing the 'Bizz' portfolio Wordpress theme(http://www.wpexplorer.com/bizz-wordpress-theme). It includes custom post types for managing portfolio examples, the highlights on the homepage, etc. ...
1
vote
1answer
478 views

Facebook “like” open graph meta in header.php

I would like to add open graph meta tags to my header.php, but can someone explain how this works if header.php comes before my loop with the relevant information?? <meta property="og:title" ...
1
vote
2answers
95 views

Adding a div at the bottom of a sidebar

I can't find a way to place a div at the bottom of a wordpress sidebar, after all the widgets are displayed. Though I can acheive this by tweaking the themes I need a way to do this programmatically. ...
1
vote
1answer
180 views

How to make “more” or “continue reading” links on excerpts nofollow?

I tried to make each one of my post excerpt's link to the full post "nofollow" like this: <a href="<?php the_permalink() ?>" rel="nofollow">&rarr; Continue Reading</a> ...
0
votes
1answer
423 views

GD star rating function problem

If anyone can help me out with this you'll be a life saver. I've been trying to use the wp_gdsr_render_review() function to add the results to my theme with no success. The results appear fine if I ...
0
votes
1answer
136 views

Edit the Publish Widget Options

Another noob question - under the 'Publish' widget in a default vanilla installation of WordPress 3.3.1, we would like to 'simplify' the Publish widget/ Specifically, we would like to have no 'draft' ...