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

learn more… | top users | synonyms (1)

0
votes
1answer
207 views

Simple tree display of WordPress menu

I want to display my wordpress menu in the form of a simple tree like this: >First menu item >sub-menu-1 >sub-sub-menu-1 >sub-menu-2 >sub-menu-3 >Second ...
0
votes
2answers
295 views

How to add PHP code snippet to all Post pages?

I wrote a short PHP snippet that I want to include on all past and future posts. I can't figure out which PHP file to add it into that'll affect the change to all and only Posts. Can someone point ...
0
votes
1answer
6k views

How To: Simple domPDF Example

Not quite sure if anyone here has used dompdf, but I'm in need of assistance. There's a plugin (post-pdf-export) that exports posts to PDF using dompdf. All I need to do is generate some html (<...
0
votes
1answer
39 views

why is markup routinely placed in functions in wordpress?

Here is an exampple from a woothemes theme. I'm definetly not having a go at woothemes - they are a great theme provider with great standards and this sort of thing is fairly typical in themes. why? ...
0
votes
1answer
142 views

Snapshot Theme from WooThemes — empty 'alt' attribute

I´m using Snapshot theme from WooThemes. The code which resizes (width and height and size in kb), and shows the images (an 'a' tag, wrapping an 'img' tag) is this one: <?php if ( get_option('...
0
votes
1answer
83 views

Styling the second sidebar

Ok so i added a second sidebar to my site, only problem is styling the widgets. here is the code i am using in my functions.php file // Widgets plugin: intializes the plugin after the widgets above ...
0
votes
1answer
78 views

3 domains, 1 wordpress install, redirecting and changing domains on live site

UPDATED & SIMPLIFIED: I have one Wordpress install at Host #1 with a domain (Domain-A) at Host #2. Domain-A was used for the WP install. I have Domain-B & Domain-C at Host #3. I need Domain-...
0
votes
1answer
83 views

Enforce conditions only for draft posts using WyPiekacz, ignore pending and published posts

I use WyPiekacz to set various conditions for authors when creating posts, for example checking if the post has a featured image or how many tags that are being used. It works fine. However, these ...
1
vote
2answers
100 views

Where do posts get the sidebar from?

I'm trying to add an if statement on the sidebars that are displays in POSTS. I want posts to show a specific sidebar if it's in category x and display a different sidebar if it's not in category x. ...
0
votes
2answers
171 views

making php value numeric

I used some of this code from this page on Stack Overflow: Using wp_query is it possible to orderby taxonomy? It's about the function to be able to sort a query by a taxonomy value. Although it works ...
0
votes
1answer
2k views

How to send “Location” header on plugin form submit event?

How to redirect to specified page after form was submitted? Warning: Cannot modify header information - headers already sent by (output started at wordpress\wp-admin\menu-header.php:94) in ...
0
votes
1answer
32 views

Photos do not show on SEO platform built into a wordpress plugin

I’m building an SEO application. I built a plugin from the folder with the application. So, the folder is called body_call and inside has the body.php, the index.php (in which I placed the plugin “...
0
votes
1answer
395 views

Form Security: nonce vs. jQuery

I am trying to create a methodology for submitting forms on my WordPress site. In the past, I have used WordPress nonces in order to secure form submission, but I like the idea of using jQuery to ...
1
vote
1answer
5k views

How to access function from outside of a class within this class in WP plugin?

I am developing a WP plugin called e.g. DD_Awesome_Plugin and this is my code so far (simplified version without additional code logic within class functions): class DD_Awesome_PLugin { public ...
0
votes
2answers
1k views

Multiple pages on one with different HTML

I am a bit confused on how this may be achieved. I have a website that I have coded already with static HTML/CSS and I am trying to incorporate it into wordpress. The challenge though is that the ...
2
votes
2answers
3k views

Custom Post Type .current-menu-item not applying on Custom Post Type Archive Page

I am working with custom post types and I had trouble with the nav menu not getting the .current-menu-item on my custom post archive page menu item. In fact, when I was on that page or any of the ...
-1
votes
1answer
5k views

Eliminate duplicates in a foreach loop [closed]

I've created a filter for my search results that allows people to filter user searches based on their State from their profile. The problem I am having is that there are duplicate states showing in ...
0
votes
1answer
122 views

Replacing WordPress Icons (menu,icons32, etc)?

I want to replace wordpress admin sprites. I recreated the images and looked answrs for icon replacement using jquery and simply with CSS BUT what about ones link icons32-2x.png where I can't find the ...
0
votes
1answer
595 views

Fatal error: Cannot redeclare comment_theme()

I have this wordpress site build up. In the blog section my post is getting repeated which I do not want how can I get rid of this situation Use this link: http://rymahrice.com/some-energy-drinks-...
0
votes
1answer
32 views

Covert Wordpress Blogname into JQuery

Here is the blogname in php <?php $blog_title = get_bloginfo('name'); ?> I want to convert it to javascript. The file I want the blog name is in a .js file so I cant create the variable with php....
1
vote
5answers
2k views

How to trigger $_GET request within admin plugin page?

I have this form in my plugin function: <form method="get" action="" enctype="multipart/form-data"> <p class="submit"> <input type="hidden" name="do_it_hidden" value="run"> ...
0
votes
1answer
238 views

Dynamic Image Replacement through call rail phone call tracking plugins in wordpress

I want to dynamically swap an image that contains a phone number. I followed steps given in http://www.callrail.com/docs/web-integration/dynamic-number-insertion/images/ but images not swapped. I ...
2
votes
1answer
970 views

Limiting the WordPress feed to only a certain limit of characters

I have a WordPress installation that sometimes uses long and lengthy posts delimited by the <!--more--> tag. However on my RSS feeds, the entire post is shown. Is there a way, aside from custom ...
5
votes
1answer
7k views

Reposition WooCommerce breadcrumb outside of wrapper content

I currently have this code in my functions file for the WooCommerce plugin.. function my_theme_wrapper_start() { echo the_breadcrumb(); echo '<section role="main"><div class="wrap">';...
0
votes
1answer
30 views

first instantiated SimplePie object cosumes 5mb?

This following lines causes 5mb memory consumption. It appears large to me. if ( ! class_exists( 'SimplePie' ) ) include_once( ABSPATH . WPINC . '/class-feed.php' ); new SimplePie(); I'...
0
votes
1answer
173 views

Control content before and after custom post type loop

I am trying to create a left nav menu that contains a couple of different taxonomy lists of a custom post type. For example, the left menu might look like this... <h2>New Stuff</h2> <...
2
votes
1answer
4k views

Search that will look in custom field, post title and post content

I am looking for a way to perform a search, and while performing the search, it checks a custom field named keywords, the post title and the post content. If any of those fields have results like what ...
0
votes
1answer
143 views

displaying a fall back query if there's nothing in the post-type category

I'm stuck trying to figure out the best way to manipulate my query so that if there's nothing in the category it will display the latest post-type. Here is the query I've got that pulls in the posts ...
0
votes
1answer
377 views

the_meta - no get_the_meta query?

I want to use the_meta as though it were get_the_meta. I want to do this because when i use the_meta in my functions.php file (I'm using a shortcode to enter data to pages), it posts the meta ...
0
votes
1answer
304 views

POST from jQuery to PHP

I have a form that passes field values to jQuery, which validates the fields and creates the variables being sent in data: {} in the snippet below. $.ajax({ type: "POST", url: "<?php ...
-1
votes
1answer
131 views

Echo author slug in post edit page

On the Post edit page in the back-end, how do I echo the author's user_nicename? I am referring to the author of the post, not current user.
3
votes
2answers
420 views

One button to change all settings in theme customizer?

I have been attempting to create a theme reset button for the theme customizer that automatically removes all of the theme_mod settings. I have tried multiple ways to do this and have never been able ...
1
vote
2answers
187 views

How to remove the cufon script from Dzonia Lite theme [closed]

I am using Dzonia Lite theme in my website. When I try to remove the cufon script from my functions.php file the sliders that were present in the website are not working. Colud anyone suggest me how ...
4
votes
3answers
2k views

How to export/import theme customizer settings?

I am wondering if it is possible to export theme customizer settings(theme_mods) to be imported into another install of the same theme. I know that the settings are saved into the database so I am ...
1
vote
2answers
3k views

wp enqueue style and style sheet depth

How could I add a style sheet at the bottom of the <head> tag, so if there´s a need to override some other styles added before, it will override. I heard something about wp_enqueue_style, and ...
1
vote
1answer
111 views

Add a custom stylesheet for BlackBerry

I want a little help loading a custom stylesheet in wordpress. I'm using PHP to check if the user agent is BlackBerry. If yes, I want to load blackberry.css, if no, regular wordpress style.css. Here'...
1
vote
2answers
185 views

How to remove the excerpt in the Dzonia Lite theme

I am using Dzonia Lite theme in my website. My front page shows all the latest posts. I am getting an excerpt at the end of each post. Could anyone suggest me how to remove that excerpt at the end ...
0
votes
1answer
30 views

need help adding a new sidebar to a page that can't use page-templates -> multisite

This problem is quite complex and hard to describe so bare with me. I'm trying to add a new sidebar to my test-page before I put it live. Basically I've got a website with wordpress installed and ...
1
vote
1answer
63 views

Editing Category RSS Feeds

I have the following PHP code below that I would like to add to the category feed in WordPress. <?php if(get_the_post_thumbnail()): ?> <featured-item><?php echo wp_get_attachment_url(...
0
votes
0answers
43 views

WP_Nav Highlight Parent Issue

I'm trying to figure out how to highlight the parent nav of a page and becoming stuck. I've seen something like this : <li <?php if(is_page('services')) { echo 'class="current_page_item"'; } ?&...
1
vote
1answer
66 views

Customize Plugin

I am trying to create custom welcome panel in dashboard for WP and can't see where I went wrong. It's not allowing me to add html.
0
votes
0answers
297 views

how to retrieve subcategory related to category in edit page from view page by using javascript

I am doing a basic product page by using JavaScript,php and html. I retrieve the category related subcategory drop down list from view page .but my subcategory is not change according my category .I ...
0
votes
1answer
439 views

How to list users like an archive page 10 users on page and have navigations

How can i list registered users like an archive page? and how can i make a link on user name to point to user profile page? Please see the link http://postimg.org/image/9wkp6kfib/ <?php /* ...
0
votes
1answer
90 views

Display movies that apear this day next

This code retrive me the movies that are comming in cinema, i want to be able to list movies that apear this day, next day ... 7 day week Ex: Today is 13.05.2013, i want to list the movies that ...
0
votes
1answer
197 views

Twitter feed is showing blank in WP site [closed]

I am using themefuse WP theme and facing this problem. http://themefuse.com/forum/thepractice-wp/twiiter-newsline-is-blank Can someone please suggest if I need to use some other attribute. I am not ...
0
votes
1answer
53 views

Looping taxonomy in taxonomy?

So I have a CPT of references (like a dictionary kind of format for music). In it there are two taxonomies: medium_reference and reference_letter. The reference_letter lists letters A-Z, while ...
0
votes
1answer
628 views

OG:Audio facebook meta tags

Does anyone have any Idea how to populate the attached audio file URL into meta elements? Just as you would featured image or something Here's what I tried: <meta property="og:audio" content="<?...
0
votes
1answer
146 views

WordpressUser Submission Form

I have a User Post Submission form, and it has three issues, as well as one potential issue. Here is the code that processes the form. <?php if(isset($_POST['user_submission_form'])) { if(...
0
votes
1answer
362 views

Infinite Scroll Plugin: How to first show 6 posts and then 2 posts thereafter with Infinite Scroll Plugin?

I am using the Infinite Scroll Plugin and initially load 6 posts onto the page. After the user hits "Show More" which is the pagination buttons on the page, I would like for 2 posts to be displayed ...
1
vote
1answer
2k views

Save selected item from dropdown menu in a meta box as a metadata value for a custom post type

I have been beating my brains on this one for days now and my Google-fu is failing me. I have created a custom meta box with a dropdown menu that lists all of the terms from a custom taxonomy. What I ...