1
vote
1answer
909 views

Do WP_debug notices explain why my site runs so slow?

When I enable WP_DEBUG, I get lots of the following kinds of notices (see below). Of course, I normally don't have the debugging turned on, but I'm wondering if these are a clue as to why it takes so ...
0
votes
1answer
561 views

How to get the password and username of the add new user form (admin back end) in wordpress

I am trying to get the username and password that entered by the wordpress admin in the add new user screen to use those into creating a webmail account using cpanel api. How to do that? is there is ...
0
votes
1answer
557 views

How to get the first post and second post in a wordpress blog?

is there a way I can retrieve the first and second post in wordpress... I have tried using get_post() but with that I have to put in a id. What if I don't know the posts id?
0
votes
1answer
524 views

Empty meta-box returns publishdate if no value is set?

I have no idea why this would/could happen. I have a custom metabox for an "event_end_date" set for a custom-post-type. If I leave this field blank it always puts out the publish-date of the post ...
0
votes
2answers
757 views

get_terms() for custom taxonomy related to another taxonomy

I have this weird thing to do and I have no idea how to do it. Ok, so: I have two custom taxonomies: collections and categories (both are prefixed, but for the sake of simplicity, I'll use these ...
-1
votes
1answer
430 views

Search with multiple selects that include tags

I need to make custom search for specific house projects in my new wordpress site. It needs to have 4 dropdown lists - 1 [number 2] for categories and 3 [numbers 3,4,5] for tags. Tags need to be ...
0
votes
1answer
51 views

Using a specific template for front page only

I am using supersized full slider for my themes, but it need all the script and stylesheet gets enqueued before wp_head. So it becomes the part of the header. Now whenever I use the header template ...
1
vote
1answer
283 views

How can i change the name order in the admin?

When i go to wp-admin/users.php, in the second column i can see the users full name, however, its not in the right order. In Hungary, we use a different name order: ...
0
votes
1answer
386 views

How to show beneath posts the full category path?

My portal has the following category structure: CategoryLevel1=>CategoryLevel2=>CategoryLevel3=>CategoryLevel4 I assign posts to CategoryLevel4 but I want to show the full category path beneath each ...
0
votes
1answer
39 views

different theme in one website

Assume this is my site name : www.example.com. I saw different websites have different themes in a site. For example I want to have different themes for www.example.com and ...
11
votes
4answers
8k views

Remove Open Sans from Twenty Twelve theme

I´m creating a child theme for Twenty Twelve v1.0 and I want to remove the Open Sans font. Open Sans is added in Twenty Twelve´s functions.php: wp_enqueue_style( 'twentytwelve-fonts', ...
14
votes
4answers
8k views

Remove custom post type slug from URL

Haven't found a useful answer for this. I am aware of the conflict issues and all the problems this may cause, I'm curious if it's POSSIBLE not SUGGESTED. This will require WP rewrites, I know this ...
1
vote
1answer
1k views

How can I convert some categories to a custom taxonomy?

I have a WordPress install that has a ton of categories. I want to convert some of these categories into a custom taxonomy. For example, I have: Categories: Category A Subcategory 1 Subcategory 2 ...
0
votes
1answer
659 views

how to separate categories in loop.php?

I am trying to get all the posts in a specific category separated into 3 different sections. Each category will be in a different div. When I try doing this, WordPress lists every post in every ...
1
vote
1answer
889 views

How to sort custom post type posts in default order by multiple fields?

I'm with a non-profit that paid for development of a custom post type plugin that will help us track endangered plants that we're keeping in cultivation, rescued from development. We're mostly happy ...
33
votes
2answers
17k views

add_menu_page() with different name for first submenu item

The add_menu_page documentation says to pass the menu title as the second parameter: add_menu_page('Page Title', 'Menu Title', ...); When adding more pages later via add_submenu_page, the main page ...
0
votes
1answer
658 views

Add custom fields after post/page title

I am using the Headway theme, and I need to add custom field code to page & posttitles. This is what I need to be able to do. The red button will be added through a custom field. It needs to be ...
0
votes
1answer
31 views

How can i display in a archive page a number of post i want

How can i display in a archive themplate ( post type) page a number of post, Let say i want to display a number of 20 post....in archive page, under i want to display the pages... Please look here : ...
0
votes
1answer
5k views

Return all users with a specific meta key

I'd like to use get_users() to return all users that have a particular meta_key, but I don't want to specify what the value has to be because it will change for every user. The value is a json string. ...
3
votes
1answer
5k views

How Can I Duplicate a Widget?

By duplicate, I don't me copy the code from a (core) widget and change it a bit. That's pretty easy. I want the push button ability to grab all the settings from a given widget, copy them, stick them ...
3
votes
2answers
6k views

Using wp_get_nav_menu_items() to list children of children pages

I'm working with a Genesis Based Theme and I'd like build a Page/ Child Page menu structure. That part I can do with the help of some code produced by Bill Erickson. Essentially what I'm trying to do ...
0
votes
2answers
3k views

Custom SQL Query on Custom Post Type. Order by Taxonomy?

I've created a custom post type called 'publications' and a custom taxonomy called 'topics'. I'm also using the standard taxonomy of 'category'. My Custom Query makes sure that it fetches ALL ...
2
votes
1answer
450 views

Create a Meta Box in the Admin User Screen?

My client wants the New User admin page to be composed of a meta box. add_meta_box( $id, $title, $callback, $post_type, $context, $priority, $callback_args ); But this seems to be for posts only ...
2
votes
2answers
605 views

Wordpress Loop - Style rows of posts differently

I am trying to adapt the Wordpress loop to style posts differently in rows that get infinitely smaller until all posts are displayed The concept here is to display posts in rows first row 1 post ...
0
votes
1answer
150 views

Showing the attachment for a page?

I have the following function, it displays the attachments of a post, however it shows the full size, how can i show a limited number of attachments and also a smaller version like a thumbnail. ...
0
votes
1answer
4k views

How to get source of custom meta image?

I'm working on a CPT (custom post type) page template and would like to get the source of custom meta image. For post_thumbnail's this is rather easy using wp_get_attachment_image_src(), but if I ...
1
vote
0answers
113 views

Adding range to wp_link_pages();

I have some very long posts, some have more than 50 pages() and when using wp_link_pages it give me 50 internal post links, clearly this isn't usable. How can I add a range to the wp_link_pages ...
3
votes
1answer
133 views

Possible to use conditionals within add_feed() callback?

I'm using add_feed() to create some custom feeds but calls to is_singular(), is_home() etc... just don't seem to work within the callback. Is there a workaround for this? Example code: add_action( ...
0
votes
2answers
461 views

Related Posts: Notice: Undefined offset: 0

I get an undefined Offset message with this Query. Can anyone Help? $terms = get_the_terms( $post->ID , 'filters', 'string'); $term_ids = wp_list_pluck($terms,'term_id'); ...
4
votes
2answers
591 views

Wildcard subdomain for the same site

Is there any way to make all requests to any subdomain load the same Wordpress website e.g. user1.example.com, user2.example.com and user3.example.com all load the same website, but with the links ...
3
votes
2answers
6k views

How to change order of posts in admin?

How can I change the order of posts in the admin dashboard, so they display alphabetically according to title, rather than latest first?
6
votes
2answers
396 views

WordPress database scalability from the code perspective

I have read through multiple questions here on StackExchange that concern WordPress scaling and the common opinion is that WordPress is indeed highly scalable provided you have the infrastructure to ...
0
votes
1answer
1k views

get_query_var returns null

My pretty permalink clearly shows the query_var: localhost/site/?tree=312 Yet when I run var_dump(get_query_var('tree')); I get NULL returned. Any reason why? Also when I print_r($wp_query), I ...
0
votes
1answer
315 views

navigation doesn't work in custom header.php

I've made a custom header-blog.php(for blog page/home.php) in addition to header.php, both of which use the exact same <nav> code. On the pages that use header.php, the navigation works ...
1
vote
0answers
47 views

Insert File URL Links to Existing Images that Were Not Originally Linked to Themselves

I hope the title was descriptive of what I'm looking for. I have a client who has been inserting images into hundreds of posts, but choosing "Link URL: None" when inserting images instead of choosing ...
1
vote
2answers
536 views

Having a Function Inside of the Loop

I am trying to make a frontend product editor for WooCommerce, and have a loop that returns all of the products for the current user. I am trying to use gravity forms as the editor, so a single ...
5
votes
2answers
846 views

How to use command 'wp post create' in wp-cli properly?

I need to create a single post with title, content and excerpt with this command as it's described in the utility documentation. Could you please show me an example of how to use it? I couldn't find ...
-1
votes
1answer
46 views

I have over 3000 child pages - but I need a different main page

I set up my website using WordPress. The goal, to have about 70 pages directly linked to the main page (my landing page) and most of those pages having anywhere from 5 to 200 blogs coming off each of ...
0
votes
1answer
521 views

How to make wordpress use www.example.com/blog/wp-includes/ instead of www.example.com/wp-includes/?

I have WordPress at address http://www.example.com/blog/, now I want it to be accessible as http://www.example.com/ without moving wordpress to root directory. I have made appropriate .htaccess ...
1
vote
2answers
307 views

How to hide trackbacks on wp-admin/edit-comments.php

How to hide (or not to show, better said) trackbacks on wp-admin/edit-comments.php page? I want to hide the comments with no email (also known as trackbacks) and comments with a specific email from ...
0
votes
1answer
553 views

How to insert date in topNav

In my theme i have a menu on the top of the page where i've links for my pages, this is the line of code in the header.php that generates topNav, <!-- BEGIN HEADER-TOP --> <?php ...
0
votes
2answers
62 views

Is it duplicated if I cache an object that uses data from postmeta?

I have an object that saves its data in postmeta. When there is a post_id, the object class will query data by using get_post_cutom(); After get data, it starts to do its jobs, the end result is a ...
2
votes
3answers
7k views

woocommerce and is_user_logged_in() if not redirect to homepage

I am currently using woocommerce and would like to redirect none logged in users to the home page, however i am having a little trouble determining where i should implements this I have done research ...
0
votes
1answer
136 views

Rewrite rule to redirect to a particular filename.php

I'm using the Monkeyman Rewrite Analyzer plugin (http://wordpress.org/extend/plugins/monkeyman-rewrite-analyzer/) I want to write a rule that will be take a URL (that is specified in the user's accnt ...
0
votes
2answers
526 views

Insert taxonomy slug into loop class

I am a loss here since I have looked at dozens of tutorials and posts all over the internet on how to get the slug for a taxonomy and nothing I try seems to work. The taxonomy shows up fine when I ...
0
votes
1answer
41 views

How to stop comments widget conflicting with theme comments

I have a widget that retrieves and displays the latest comments for a WordPress site. It displays the comment author, Gravatar, comment and date / time. The function to display the comments is in a ...
-1
votes
1answer
383 views

Parent pages not found with pretty permalinks

I'm building a site and for some reason all the parent pages are 404ing, only sub-level pages are displaying with pretty permalinks. If I use default permalinks, everything works fine. I've tried ...
1
vote
0answers
89 views

Are un-sanitized theme options more vulnerable to malicious scripts than the theme editor?

I'd like to put text areas in a theme options area to allow users to easily add analytics code, scripts, and css. Is it silly to worry about malicious code being inserted via un-sanitized theme ...
3
votes
1answer
213 views

How to use jQuery on widget admin page

I have a lengthy form config for my widget so I thought about using radio buttons to hide and show the relevant input fields instead of having them all after each other. But it doesn't seem to work. I ...
-1
votes
2answers
116 views

Custom Wordpress Does Not Display Anything But Background in IE [closed]

I have a custom, well kinda custom wordpress in only one page of my site, the background only displays in Internet explorer, no body or content just background though in firefox it's fine as with ...

15 30 50 per page