The server-side programming language that the WordPress core, plugins and themes are written in.
0
votes
1answer
9 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 ...
0
votes
1answer
11 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();
...
0
votes
1answer
21 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>
...
0
votes
1answer
12 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
19 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
29 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 ...
-2
votes
0answers
19 views
How can I create a simple/editable window/area on my homepage? [closed]
I have been on more than 4 wordpress theme/plugin related forums to try and find a solution for my request. I am building a jumbo mortgage website with WordPress.
I need an ultra simple homepage ...
0
votes
1answer
18 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
20 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.
0
votes
1answer
24 views
Hooks - Query about WooCommerce plugin integration to non-compatible theme
I am quite new to WordPress and wish to learn more about hooks and how to use them.
Could anyone point out the necessary hooks in this page.php code to replace the markup in the following WooCommerce ...
0
votes
1answer
11 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 ...
0
votes
0answers
7 views
Extended image control not showing up in theme customizer
I have an extended image control for the theme customizer that adds in an extra panel and lists images I have hardcoded into the extended control.
Now the issue is that it is not showing up in the ...
1
vote
2answers
31 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 ...
0
votes
0answers
9 views
How to utilize theme customizer live preview in this situation?
Short version: I am using the theme customizer in my theme and javascript for the live preview. I am not sure how to implement the javascript for php(as seen in code excerpt).
I am creating a theme ...
0
votes
0answers
19 views
Test (prior to calling “grouped.php”) if product is_type('grouped')
Long time reader / First time asker!
I am setting up a woocommerce theme, well im extending my current theme. I would like to test to see if the product is a "grouped" product in the ...
0
votes
0answers
7 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 ...
0
votes
2answers
40 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
19 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.
...
1
vote
2answers
27 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
16 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
18 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 ...
0
votes
0answers
23 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
2answers
37 views
Display posts of the last 7 days
I'm trying to display the 5 best rated posts of the last week (7 days) on my website, however I can't seem to figure out how to display them.
Here's what I've achieved so far but it doesn't seem to ...
1
vote
1answer
29 views
Customize Welcome Panel 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.
function custom_welcome_panel() {
$customwelcome_panel = ...
0
votes
0answers
27 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
22 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
27 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
24 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
23 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
29 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" ...
0
votes
1answer
39 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'])) {
...
0
votes
0answers
16 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 ...
-5
votes
0answers
33 views
Editing “Kahi's Highlight Used Categories” plugin - part 2 [closed]
I have posted before, wanting to style the parent category in use, and the current category in use.
Here is a Plugin that does that: Editing "Kahi's Highlight Used Categories" plugin ...
0
votes
0answers
39 views
how i can hide some category from author admin panel?
i want author can not see some category from author admin panel but administrator can see that.how i can hide some category?my site http://techjagot.com ..
here show some function.php code
<?php
...
0
votes
1answer
40 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 ...
0
votes
1answer
27 views
Requires PHP version 5.3.0
When I try to install "Background Manager" plugin I am getting this error "The plugin "Background Manager" requires PHP version 5.3.0 or better, but version 5.2.17 was detected". Could anyone suggest ...
0
votes
2answers
25 views
How to Publish WP original Source metabox value on front-end webpage
I use a plugin called WP original Source.
It lets me add the URL of the original article source, which is handy as it credits the original source of article extracts and summaries that I publish of ...
3
votes
1answer
49 views
Allow acces to wp-admin in wordpress
I am trying to restrict access to wp-admin: only administrators and editors should be able to access it. At the moment I am using this function:
function restrict_admin(){
//if not administrator, ...
-1
votes
0answers
25 views
Fatal error: Call to a member function main() on a non-object
I don't know from where it came from without messing with the files. I just uploaded higher version of same theme and error keeps on encountering.
Fatal error: Call to a member function main() on a ...
-1
votes
0answers
14 views
Accessing a Variable Inside Custom Customizer Control [closed]
I'm creating a custom control for the WordPress Theme Customizer and I'm having a bit of difficulty accessing a variable outside of the class.
$fooBar = array("foo", "bar");
class My_Control extends ...
-4
votes
1answer
24 views
is_page Display [closed]
I'm attempting to compile a code which displays content dependent on which page is being viewed. The following code is returning a syntax error Parse error: syntax error, unexpected T_STRING and I'm ...
1
vote
0answers
21 views
selected menu item
The template I'm working on for a client has the following pages:
Home : a custom static page that displays the content of a certain WP page, and the latest sticky posts. This is the front-page.php ...
0
votes
1answer
35 views
How to change links in the 3 main categories, on widget category, to a javascript function call
I'd like to know..
How could I change my 3 main categories links, so they call a javascript function?
I'm using Snapshot Theme from WooThemes.
Here's the current state of the website:
...
1
vote
1answer
22 views
Word Count Function Preventing Permalink Editing
This code counts the number of words in an excerpt and adds it to the excerpt meta box in the post edit screen: http://snippi.com/s/sn3hk5p
However, something about this code is preventing the ...
0
votes
1answer
26 views
How can I show registration form inside modal?
I want to show registration form inside modal popup. Now I can use fancybox and show modal popup but how can I show registration form of wordpress inside that modal? Is there any plugin available for ...
0
votes
1answer
44 views
Get value from db for custom contact form
I built my own contact form (no plugins) and want to have a secure way to get an emailadress from my option page. get_option and other built in WP stuff doesn't work from within my process.php file.
...
2
votes
1answer
35 views
WordPress plugin installation
I am using the simple add_filter function to output the content.
add_filter('the_content', 'my_name');
function my_name( $content ){
// code
return $content;
}
When I activate the plug-in ...
0
votes
0answers
23 views
when implementing a “GET_Template_part”, something weird happens
OKay, i read the wordpress codex about
get_template_part.
i get it work, BUT, when it load the .php, it actually prints out the text/word:
get_template_part()
right before the rest of the ...
0
votes
0answers
17 views
how to make sitemap automatically import new page?
is there a way to import new pages to sitemap.xml and sitemap page in wordpress
i created a page
and i added inside it
sitemap.xml
<?xml version="1.0" encoding="UTF-8"?>
<urlset
...
0
votes
1answer
14 views
Exclude a 'portfolio' custom category?
I have a custom post type called 'portcat' and I want to exclude one portcat category ('weather' - ID='5') from the page. I've tried 'category__not_in' => array( 5 ) but apparently this doesn't work ...
