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

learn more… | top users | synonyms (1)

0
votes
1answer
19 views

How can I include a file related to blog URL? Nothing seems to work

When I was building my website locally using WAMP, I was just using simple include '/extras/file.php'; Of course, that would start at the root folder, and look in the extras folder. However, now ...
0
votes
1answer
53 views

Wrap posts p tags in div

I am trying to set up blog posts so that when an image is added it is wrapped in one div set to float right and when text is added it is wrapped in another div set to float left. So that all images ...
0
votes
1answer
32 views

Is this correct get_template_part() in WordPress?

I just want to show the slider structure if it has posts... is this correct? <?php if ( (have_posts() ) { get_template_part('slider'); } ?> I think that works but I'm not sure if is ...
1
vote
1answer
47 views

How to overwrite youtube embed?

I really like how you can just paste a URL right into the post... such as: http://youtube.com/watch?v=xyz or http://vimeo.com/123456 What I want to do is change the default code for this to support ...
0
votes
1answer
44 views

Metabox Data not saving

My Metabox data doesn't appear once I've saved the page, I tried vardump() on both getextra_mbe_date and getextra_mbe_time which returned null my code is <?php /* Plugin Name: Events CPT Plugin ...
-1
votes
1answer
24 views

What can I do to customize a widget provided with this plugin? from where have I to start?

I am using this WordPress plugin to create an immage gallery: http://wordpress.org/plugins/easy-media-gallery/ This plugin provide a single widget inside it and I would customize some litle function ...
0
votes
0answers
16 views

How to put a select option in jigoshop checkout?

Am I doing the right thing guys? Please help me. What I want to happen is to put a shipping time in billing address. Help me please. Thanks array( 'type' => ...
0
votes
1answer
22 views

wordpress plugin license issue -New plugin development

Can i copy all the codes of a free plugin and paste it in my new plugin ?. Is there any license issue for using the others plugin code. My new plugin is working properly ,but for making this plugin i ...
0
votes
0answers
48 views

Editing a Wordpress plugin to add my own functionality

I'm trying to add more fields to this php script. By default what it does is allow visitors to your site to input their name and email address to register it into a list on the back end, which I can ...
0
votes
2answers
71 views

How Can I Center the Logo in the Navigation Menu? [closed]

I'd like to center the logo in the navigation menu. I understand how to do it if it were not PHP based. Does anyone have any insight on this? You can view the test site here Any help is greatly ...
0
votes
2answers
206 views

How do I change/modify the_post_thumbnail(); html output?

I'm working on building out a custom theme and have been struggling with this one for a bit. I am trying to modify the HTML output of the_post_thumbnail(); function. I need to do this because I am ...
0
votes
0answers
16 views

Nivo slider not working [duplicate]

I have added nivo slider plugin to wordpress however it doesn't move past the git loading file.I believe the problem is in the way i am loading the jquery. I have included the javascript ...
1
vote
1answer
40 views

Remove all nav menu classes ( but keep useful ones… )

I'm trying to remove all menu-item classes (except for .current-menu-{item/parent/ancestor} and .menu-item-has-children) function custom_nav_menu_css_class($classes) { $classes = ...
0
votes
1answer
19 views

Getting the author name on author archive page

My template not work for author name on author archive. I tried change to get_the_author but nothing changed. Hope someone help me out. Thank in advance.
1
vote
0answers
106 views

Displaying Gravity Form data on Wordpress page

How can I display the data from within a Gravity Form on a Wordpress page? (This may be too detailed, but in case anybody wants details about what I'm trying to do, here they are): I have two ...
1
vote
1answer
32 views

Displaying a variable stored in functions.php inside widget

I'm trying to display a variable that is stored inside my functions.php file - for the sake of the question this variable is stored as $test = 'test';. When i use echo $test inside page.php, ...
0
votes
1answer
46 views

Get_the_author doesn't return author name

I insert author box below my post and use get_the_author to return author name but it doesn't working. It also doesn't working with Search post by author. Hope everyone give me solution, thank in ...
0
votes
1answer
37 views

Widgets not showing in my custom theme

I am developing this WordPress custom theme: http://onofri.org/WP_BootStrap and I am trying to insert a widget area under the Partner e Sostenitori section, but can't work. I have performed the ...
0
votes
1answer
29 views

How do I create a numbered list with PHP? [closed]

I'm having some difficulty functioning this morning! This isn't specifically WP (more PHP), but I think that it would benefit WP devs in the future, so I'm asking here. I'm trying to create a list ...
0
votes
2answers
39 views

Adding Separator to Breadcrumbs

I have pieced together a breadcrumbs code that displays child pages/posts and is markedup for schema. The only thing this code doesn't have is a separator between each link. How can I add a separator ...
0
votes
1answer
38 views

Php code error in wordpress if else statements [closed]

I have created an if statement inside the "else" of an if/else statement.However the code below the function does not run.When i remove the function the code below the function runs.Could you please ...
0
votes
1answer
32 views

Only single mail function is working from double mail functions one after another on wordpress

I am having a html form in my wordpress page and i have call action on my form. The file which is calling an action is saved in the root of wordpress directory. sending-mail.php I have two mail ...
0
votes
0answers
29 views

How to validate datepickers before publish

I have two datepickers in my post: 1. start_date and 2.end_date Basically, I need to check if end_date is greater than start_date before I can proceed to publish. From a previous solution here, I ...
0
votes
1answer
101 views

How to redirect users to custom lostpassword page?

How to redirect users to custom lostpassword page when they click on the Error: Lost your password?. Because I set a redirect for wp-login.php to my custom login page. when a user click on Error: Lost ...
-1
votes
1answer
21 views

Error in php code

I was following the Book building wordpress theme from scratch. An options page is created through this method in the wordpress admin panel . There is an error present due to which nothing appears ...
0
votes
1answer
58 views

Sort posts by title, sort array by largest number [duplicate]

I am using the post to display attorney verdicts and case details. The post title is the verdict amount entered as a string. (no $ "," or ".") I am formatting the title using PHP number format: EX: ...
0
votes
1answer
47 views

Custom Meta Boxes and Fields Multicheck Issue

I'm using Custom Meta Boxes and Fields by Justin Sternberg and its pretty great, however there's been a huge issue with using the multicheck checkbox options for me. This is what the plugin's code ...
0
votes
0answers
41 views

Nginx + W3 Total Cache not working

I have a Ubuntu 12.10 x64 server running Nginx + MySQL, i've installed everything and my wordpress site is perfect. But, at the moment i installed W3 Total Cache, i got an error from Minify which ...
0
votes
0answers
36 views

Why does logging in to my wp-admin redirect to my homepage?

Whenever I login to my dashboard I will have to manually go to the dashboard because my websites goes to the homepage first. Is there a reason for this? How do I redirect to the dashboard whenever I ...
0
votes
1answer
37 views

WordPress add post format support not working

I am working on a theme and for some reason, add_theme_support( 'post-formats', ... ) is not working. In my theme's functions.php I have the following near the top: function mytheme_setup() { // ...
2
votes
2answers
81 views

How can i get the last post from wp multisite?

I have to get the last post from my Multisite network on WordPress. For now I use this code for display the last updated post after a cycle on each blog_id: <?php $blogs = get_last_updated(' ', ...
0
votes
1answer
11 views

allow previews outside wordpress folder (Outsourcing WP previews)

I am outsourcing the wordpress and I already figured out the external view. I even know how to make a WP query for previews, but when I want to do that I simply cant - wp-load stops all operations and ...
0
votes
1answer
45 views

nested divs, classes for a grid in loop [duplicate]

php rookie here. as grids are popular right now, I wonder if this is even possible. I have three posts and have no idea how to get this working; this is my basic loop // WP_Query ...
0
votes
0answers
51 views

How to use if statements to check and echo terms by hierarchy in a post?

I'm seeing a lot of posts on here with helpful snippets to resolve my problem, but nothing has been specific enough to help me - or I just don't understand how to make those solutions work for my ...
0
votes
1answer
26 views

How to Set Limit with WordPress Get Bookmarks Shortcode

I just need some help with a WordPress shortcode function. I would like to create a list of links based on the link_category inside a post with a shortcode. I had the shortcode working until I added ...
0
votes
1answer
60 views

Get author meta of all writers

We know from the docs that you can get an author's meta like so: <?php get_the_author_meta( $field, $userID ); ?> But I would like to have a custom "About us" page which displays all the ...
0
votes
0answers
35 views

Customizing Walker_Nav_Menu - Trunicating spaces

I've just started learning to code WP themes pretty much from scratch and I'm trying to figure out how to pass a variable thru a customized Walker_Nav_Menu but without any ascii spaces. The goal is ...
0
votes
0answers
31 views

Custom URL rewrite rule for migrating to WordPress

I am trying to move my image gallery site from one CMS to Wordpress. On current CMS I have page with medium size image on it with URL: ...
0
votes
0answers
36 views

How to define a product on sale on WooCommerce programmatically [on hold]

how are you? I'd like to define a WooCommerce product on sale programmatically, just using function.php and having the ID of the product. I did some searches in the WooCommerce documentation but it ...
0
votes
1answer
26 views

subscriber can edit and delete their comments while logged on

I want subscribers can edit and delete their own comments on the post of my site anytime while logged on only. Can anybody please explain me how to do it. I used the Editable comments plugin, it does ...
0
votes
2answers
56 views

Echo string and function?

I'm trying to get "string of text: Edit" <?php echo 'string of text: ' . edit_post_link( 'Edit' ); ?> but this outputs "Edit string of text:" How do I make it appear in the correct order? ...
0
votes
0answers
26 views

PHP script to list all images from Nextgen gallery

I would like to list all photos from nextgen directory. Could anyone help me how it might look like to get it by using scripting in PHP?
0
votes
1answer
46 views

If custom field doesn't exist, or exists and it's true show title?

Im trying to add new feature to the theme and that's show/hide page title,but since i already have about 50 posts i can't go to all of them and save again just to save custom field values. So i tried ...
0
votes
1answer
40 views

Creating image gallery in wordpress

Lets assume I have two following directories fruits and vegetables under my image folder and that I want to show all images on some specific page. My questions are following: How to implement PHP ...
0
votes
1answer
14 views

Function to erase every post from a taxonomy

I'd like to have a piece of code that erase every single post from a taxonomy of a post type when triggered. How can I do it? Thank you.
0
votes
1answer
27 views

Why in my theme I can't see all the statics content under the posts?

I am pretty new in PHP and I have the following problem, I am developing this WordPress problem: http://onofri.org/WP_BootStrap/ As you can see it is shown the unique post present on my blog (the one ...
0
votes
0answers
77 views

Add the “.current-menu-item” class to <a> tag?

I am changing wp_nav_menu() to make it a listless navigation menu (i.e., no unordered list or list item tags) Normally the menu <li> has the .current-menu-item class attached to it when active. ...
0
votes
0answers
55 views

How to get duplicate array count with custom post type

After printing array I am getting output like this: Array ( [0] => WP_Post Object ( [ID] => 8 [post_author] => 1 [post_date] => 2014-01-31 ...
0
votes
1answer
44 views

Include a file that has a function in it

I am using include 'filename.php' to load a php file into a template file, simply because the original PHP template file was getting huge and I wanted to split up the sections into different files for ...
0
votes
1answer
65 views

Edit format of Paginate_Links()

I'm using paginate_links to paginate the results of a loop. I want to style the pagination using dots instead of numbers, but I'm not sure how to go about doing this. I could try to play around with ...