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

learn more… | top users | synonyms (1)

0
votes
1answer
471 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
108 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
78 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
240 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
169 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
66 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
466 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
205 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
459 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
70 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
3k 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
615 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
134 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
917 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
404 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
438 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
57 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
503 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
202 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
443 views

GD star rating function problem [closed]

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
153 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' ...
2
votes
1answer
2k views

How can I remove “Proudly powered by WordPress” from twentyeleven without modifying footer.php?

How can I remove "Proudly powered by WordPress" from twentyeleven without modifying footer.php, and without creating a child theme? I'm looking for a php command, such as add_action, remove_action, ...
-1
votes
1answer
694 views

how to set category name for a post

how to set category name for post: this is my code ,this is not working ,why? $post_title = $vname; $categ='category name'; $post_content = '[newpage link="'.$videos.'"]'; ...
1
vote
1answer
86 views

How to generate video out of images via Wordpress plugin

I am working on Wordpress plugin which can generate video from sequence of images. I read here that we can use FFMpeg and Imagemagick (or imagick) to implement this trick. But, FFMpeg is hardly ...
1
vote
1answer
1k views

How to add some custom HTML to the edit posts page

On the wordpress admin edit posts page, I want to display some custom content and script, underneath the meta box. I want to hand code this as the various plugins I could use (advanced custom fields ...
1
vote
1answer
37 views

Plugins Page invisible / white

I found a lot of posts about the white-screen-of-death, but as far as I can tell, that's not my problem. Whenever I open the backend, everything is fine until I enter the plugins section. The ...
-1
votes
2answers
2k views

How to add homepage Widget?

How do I add a 'Homepage' widget to my widget bar in Wordpress 3.3 ??!! EG: Dashboard > Widgets > Homepage with same fields as others
0
votes
1answer
436 views

Change order that the menu is generated with wp_list_pages

I am trying to order the output of one of my menus to be based off of the way they are setup in the Appearance->Menus pane, however it seems to only want to do it alphabetically. For example I ...
3
votes
2answers
7k 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 ...
1
vote
1answer
388 views

PHP get the first post separately from array returned by wpdb->get_results()

Apologies if the title isn't clear, can't quite think how to word this. I'm getting a pretty standard list of posts like this: $pageposts=$wpdb->get_results(" SELECT * FROM ...
0
votes
1answer
584 views

Wordpress Stats Plugin: Display Post Views [closed]

i'am currently using latest version of jetpack. So the stats plugin is also included in this plugin. But now i want to display the number of views the single post get on the single.php file using the ...
1
vote
3answers
368 views

Wordpress Player Profiles + PHP

I'm totally new to website programming.. I am making a website for my Counter Strike Server. I want people to be able to create profiles. And these profiles have to display custom stats from their ...
0
votes
1answer
515 views

Wordpress stripping out custom field tags

I am using wordpress get post meta to store the value of a custom field into a variable. In this particular instance, It is actually grabbing the post's parent's custom field due to the ...
0
votes
1answer
73 views

Recovering WP Login Credintials in Code?

Is there anyway to recover login credentials to Wordpress admin through the code somewhere? I just tried wp-config. I'm asking because my email is not primary on the account so using 'Forgot ...
0
votes
2answers
238 views

how to set beforsend option in wordpress ajax methods

How do I set the beforesend option in WordPress AJAX? I want to show loading option. This is my code: function showmyvideos() { var datas="data"; var data = { action: 'my_vids', ...
0
votes
1answer
733 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
1answer
538 views

Can I get an email notification when media is uploaded to the media library?

I have a front end uploader for members only, utilizing this code: <?php function insert_attachment_form($postID) { ?> <form id="file-form" name="file-form" method="POST" action="" ...
1
vote
1answer
1k views

Change the actual (or viewable) Wordpress directory structure

I like the simplicity of wordpress and all it has to offer, but for security purposes I would like to change the actual (or viewable) directory structure of my site. The install has a set of files ...
0
votes
1answer
420 views

PHP time function ($today) for GMT +1

I tried a lot - But the code at the bottom is always 1 hour behind the local time. It might be a problem of the server-time. But I want to use it for a german website - So I have to set the time to ...
0
votes
1answer
476 views

Customize Buddypress adminbar [closed]

I want to customize the buddypress admin bar, so I created this file and put it in the plugins folder: bp-custom.php Here is a copy of the code: http://pastebin.com/PcQRMXyJ How can I make the ...
4
votes
4answers
2k views

Where to get information about array fields in $_REQUEST?

I just started to learn PHP and doing things with WordPress and I am a bit confused about information in Codex. Was told that Codex got all info I required but I got stuck with it. What array fields ...
0
votes
1answer
208 views

Pagination not working

$paged for pagination is awlays returning 1, so no matter what page i click "1" is always highlighted and it always shows the same posts. i have tried a million different combinations of things to fix ...
0
votes
1answer
402 views

Move wordpress sidebar on homepage up to new position

This should be a simple task, however I am having no such luck. I am using a theme that has a homepage slider which spans across the entire content area. I have been asked to reduce the size of the ...
0
votes
2answers
157 views

Seriously stuck with some custom meta box/plugin stuff

I’m working on a small plugin - part of it needs to add several meta boxes to all custom post types. I’ve tried looping through my array of custom port types in various ways but I keep getting errors ...
0
votes
1answer
70 views

Wordpress doesn't load HTML

All, I'm trying to have a side navigation menu that once you click on a link it basically pulls the content of that wordpress page and displays it. I've got the following code to do this: $qry = ...
0
votes
3answers
814 views

Add class to every other posts using get_posts

I am currently using this little loop to display a list of posts using the "events" custom post type <?php global $post; // required $args = array('post_type' => 'events'); ...
0
votes
1answer
3k views

How to call a function only once (global variable scope)

I have been trying to work out the most effecient way to use functions in WordPress. I have a big slow function big_slow_function() that ideally is only run once. But I need to use the boolean that ...