0
votes
0answers
2 views
MCE table plugins are broken?
I've tried individually using both the MCE Table Buttons and the Ultimate Tiny MCE plugins on my WordPress 3.5.1 site, and they both do the same thing; I go to edit a post or page, I click the table ...
0
votes
0answers
12 views
Adding a tag to wp_nav_menu
I am using wp_nav_menu and I have a need for custom implementation. The default markup is like this:
<ul>
<li id="menu-item-59" class="menu-item menu-item-type-post_type ...
0
votes
0answers
7 views
Additional .htaccess rules based on wp page
I've created a page in the dashboard called Authors, created a new template-authors.php with completely own logic. It works well, going to website.com/authors/ I see a list of all authors, specifying ...
0
votes
1answer
10 views
Apply the_content filter to a custom field with multiple values
I have a custom meta box set up that allows users to paste the Youtube URL of a video so that it can be embedded into a post/page.
The meta box can be repeated so that a user can add as few or as ...
0
votes
0answers
10 views
Auto-fill Custom comment fields
Thank you for reading,
I added custom fields to the comment form, and saved the input in the DB, following this tutorial ...
0
votes
1answer
21 views
cloning a WP_Query
I'm working with several nested loops in order to create a statistics table for teams in a league and I'm having trouble getting my original query back. I've read that I should clone the original ...
0
votes
1answer
6 views
wpdb get_var is not returning any result (verified mysql query returns only one value)
I'm trying to modify a wordpress plugin to make it more adaptable for our needs. I have a custom user_meta called practice and we separate our users based on practice, so we need to separate quiz ...
0
votes
0answers
9 views
Post with multiple 'content's and muliple comment lists
I am sorry my post looks long.
I am creating a private small community for a group of authors. Their final goal is to create, online, an encyclopedy relative to the holy book. In other words, to each ...
1
vote
1answer
13 views
How to programatically change username (user_login)?
As in the title, how to programatically change user's login?
I wanted to use wp_inser_user function, but it appears that when updating current user, it doesn't change his/hers username. Should I use ...
0
votes
1answer
12 views
Hide allow trackbacks/pingbacks
Under the discussion tab on the post page, there's 'allow comments' and 'allow trackbacks and pingbacks', how would I hide the option to allow pingbacks from users but still have it be on by default?
0
votes
1answer
13 views
Shortcode strips formatting and returns at content top
Using the Advanced Custom Fields plugin and I've got a shortcode going for a repeater field, but it returns the list at the content top. I changed it from an echo to a return, which I understood would ...
0
votes
1answer
7 views
how do I add role and capability after I create a new user
I have a simple requirement:
1. create a user
2. create a role for the user
3. add capability for the role
First, create a new user
$uid = wp_insert_user($userdata);
Second & Third, create a ...
-2
votes
0answers
13 views
Is there a plugin to get people subscribe to a weekly newsletter with the following functionalities : [closed]
I haven't found a subscription plugin that does all that. Is there any ?
A plugin that sends a weekly notification email to a mailing list ; for which I can configure :
which day in a week it is ...
0
votes
1answer
20 views
How to display custom post type only on a certain page?
I have created a custom post type called 'project'. But how do I get the custom post types to display only on my main template? It's a one page website and I don't want it to direct the visiter to a ...
0
votes
4answers
16 views
what's the meaning of the field wp_capabilities in table wp_usermeta
I am new to wordpress, in table wp_usermeta I notice that we have a row
meta_key meta_value
wp_capabilities a:1:{s:13:"administrator";b:1;}
First, what's the meaning of ...
0
votes
0answers
10 views
Custom Post Type and Taxonomy URL rewrite
I'm creating custom theme for my personal website using Wordpress 3.5.1. I have problem with the WordPress custom post type and taxonomy, here's the detail:
custom post type name: articles
taxonomy ...
0
votes
1answer
12 views
Show Custom Post From Logged In Author
I have a custom home page set up so soon as users log in they see an overview of their account. I want to show them all of their own posts but im having trouble and can only get it to show current ...
0
votes
3answers
31 views
Undefined property: WP_Query::$post
I am working on some rather elaborate comparisons between metadata and having a bit of trouble correctly referring to results from my query. The first query to establish $team_is_home works fine but ...
0
votes
2answers
19 views
Exclude 2 in 3 terms of A Taxonomy from all Archives
I have read this post:
Include and Exclude Taxonomies From Archives & Feeds Using 'pre_get_posts'
And then I have used that function to my theme.
My Taxonomy (tinh-trang) had 3 term: ...
0
votes
2answers
26 views
add_post_meta — not working
I am trying to insert data into wp_post and wp_postmeta tables but it seems like i am doing something wrong.
Here is my code:
$post_data = array(
'post_title' ...
0
votes
1answer
19 views
MySQL database migration to WordPress
I have a MySQL database established for a web application I have been working on in a non WordPress database. This database has many tables with pre-populated rows for foreign keys etc. which took a ...
-4
votes
0answers
25 views
At what size does Wordpress become unproductive or unstable?
I came across this post and it made me wonder - how big a database can WP handle?
At what point would it be worth considering a (God forbid) different platform (and if so, what do you recommend)?
...
0
votes
1answer
15 views
Convert featured images into “product images”
I am developing a large ecommerce site using Wordpress and WP Ecommerce plugin. I recently overhauled the theme and framework. Where as before I was only required to set a featured image for a ...
0
votes
1answer
19 views
Dark Bar at the top of wordpress page can't be seen?
I am new to wordpress and created a website as shown in the picture bellow. My webpage used to have a black bar at the top, which allowed me to insert "New Posts". (area shown in red circle). But this ...
0
votes
0answers
3 views
Adding unit ammount after WooCommerce price. Example $ 24 /m2 and $24 / m
So hey guys,
I'm trying to get my WooCommerce price per unit done.
Some of the items I'm selling are floortiles, and as of such they're sold per square metre.
I have added the following code to ...
0
votes
0answers
9 views
similar to mulisite concept
I have a main website www.example.com and have four menu (Home,about,product,contact).
I just want to add dealers and when a dealer is added the url of dealer site becomes ...
0
votes
0answers
12 views
Ignoring slug capitalization on rewrite rule for custom post type archive page
I'm declaring a custom post type 'games' with a rewrite rule:
'rewrite' => array('slug' => 'Games','with_front' => false),
So the resulting url for the games archive is ...
-3
votes
0answers
16 views
Should I look some online store of themes for this kind of offer “Post Divider”? [closed]
I want a kind of reinforced A to Z dividers for alphabetical post with great price of themes and especially when you buy via paypal. Should I look some online store for this kind of offer?
0
votes
1answer
11 views
register and insert category manually
I am registering custom taxonomies ....
<?php
add_action( 'init', 'create_book_tax' );
function create_book_tax() {
register_taxonomy(
'genre',
'product',
array(
...
0
votes
1answer
12 views
Javascript on Registration Page
I've been trying to figure out how to implement javascript on my registration page with no luck. I've read the documentation on wordpress about properly including js, have searched for relevant ...
0
votes
0answers
10 views
Cleaning up bloated wp_postmeta table by removing multiple _thumbnail_id's?
On a very old site (7 yrs) with a lot of posts (30k) I've been trying to whittle down the database tables. The postmeta table is 1.5m rows, 750k of those rows are for a meta_key named ...
0
votes
1answer
16 views
View list of all attachments on site
I'm new to WordPress theme development and I'm trying to figure out if there is a way to display a list of public attachments similar to how you can view a list of posts with a specific tag or author.
...
0
votes
0answers
11 views
Permalinks with Virtual Pages
I am attempting to make a custom login page template (page-login.php) that will be loaded whenever the user navigates to any of the following URLs:
www.url.com/login
...
0
votes
0answers
12 views
Exporting Custom Taxonomies from backend
I have made custom taxonomies.When I see all subacategories inside one Category then the url is like this http://localhost/wpcompare/wp-admin/edit-tags.php?taxonomy=Colors&post_type=product .
...
0
votes
0answers
17 views
homepage olderposts link showing page not found
I am using WordPress 3.5.1 version, now I had a problem with olderposts link present at bottom of homepage. it is ok with rest of the category pages.
I am working on this problem since last two days, ...
1
vote
1answer
21 views
How do I disable a plugin enforced by my host (in mu-plugins)?
My host makes mandatory two plugins which get automatic updates under mu-plugins folder.
Is there a way I can disable them with some trick, for example with a plugin folder of the same name under my ...
0
votes
1answer
20 views
front end posting
this source works with upload image, if without image upload, it works but 'redirect' doesn't work. what should I do?? Please let me know..
many thanks!
if( 'POST' == $_SERVER['REQUEST_METHOD'] ...
0
votes
1answer
18 views
How can I only display links from a child category
Using this code from the codex:
<?php
$category = get_the_category();
if($category[0]){
echo '<a href="'.get_category_link($category[0]->term_id ...
1
vote
1answer
19 views
Custom admin columns for ALL custom post types
I have the following function which is working perfectly for my 'video' custom post type to display customized columns in the dashboard.
I have decided the way my plugin will work is to have custom ...
0
votes
1answer
15 views
conditional: if is page, and all subpages
What I'm currently trying to achieve is displaying certain menus on certain pages using one template and conditional statements, like so:
if (is_page('donate')){
wp_nav_menu(array(
'menu' ...
0
votes
0answers
18 views
Comments appear in wrong posts
Nasty problem here!
Comments are not connected to the right posts but to other ones!
Passing from disquss to jetpack comments doesnt't fix this.
What could be the solution?
The site is ...
0
votes
0answers
12 views
How do I reset BackWPup?
I recently installed the BackWPup plugin to my site, and it has been working fine, until recently when I changed servers, now it doesn't backup. I'm wondering if this is because I changed servers it ...
0
votes
1answer
23 views
Best way to present options for home page in admin?
I have a site with a custom home page, home.php. What's the right way to present the editable home page options in the admin tool?
For example, there's some custom text on the home page that should ...
1
vote
1answer
15 views
How to best delete orphan wp_postmeta
I'm in the middle of doing some fairly complex queries involving metadata from a custom post type. Unfortunately if any posts are deleted the metadata stays put which complicates matters as I am ...
-1
votes
0answers
12 views
Add product to order via PHP - Woocommerce
I want to add a product to an existing order, I check the WC_Order class, but I didn't see any method to add items to it.
I'm creating a plugin to quote certain productos, and if client and ...
0
votes
2answers
54 views
Custom Post Type Taxonomy Filters
Im really struggling to piece this functionality together, and hope someone can help or provide snippets to get me there.
So I'm creating a section on a website where stories are published, I have ...
0
votes
0answers
26 views
Custom Page Template not working when site moved from subfolder
I have been testing and redesigning my site in a subfolder: http://theseattlevine.com/wordpress2013
Today I am launching the site and have followed these instructions ...
-3
votes
1answer
25 views
Accidentally changed the url
I happened to accidentally change the url from my website ...
I have read a so many articles about what to do and I understand that I probably need to change something from a database, and that it is ...
0
votes
1answer
21 views
Is there a reason I cannot get the current category in a loop?
I think I am doing this wrong but if I do:
if(have_posts()){
$category_id = get_query_var('cat');
var_dump($category_id);
while (have_posts()){
the_post();
}
}
the var dump ...
-1
votes
0answers
10 views
Dropdown Menus' Tertiary Level Not Working in IE8 [closed]
I've created a site where I built a 3-level drop-down menu. Everything is working great in every browser I've tested in so far except for IE8. In IE8, when you hover over the highest level buttons, ...



