3
votes
1answer
346 views

get data from wp-query, outside the loop & without url change

I am working on an advanced search on wordpress based on custom taxonomies. I've been stuck for 72h so I was hoping to have some help or thought... Step 1 --- in the js file the query strings are ...
0
votes
1answer
65 views

Custom Links in Walker Class

I am creating a custom walker class. I need to identify the custom links that will be added to the menu from Appearace > Menu > Custom Link so that they will have a different format to the page/post ...
0
votes
1answer
892 views

Author's Id from wp list authors function

I'm new in wordpress. I want to display all author list with its ID. I'm using wp_list_authors function but didn't get any author id from the author list. So, How can I get Author's ID in listing of ...
8
votes
1answer
2k views

WordPress 3.5: Switch back to Old Media Uploader?

Is there any way to switch back to the old media uploader in WordPress 3.5? The new one is very slow for me, as I have thousands and thousands of images across my site, and I have a few plugins that ...
0
votes
2answers
191 views

Creating 'posts page' loop based on the page itself

The setting Settings -> Reading -> Posts Page is set to my 'News' page, and the loop for the home.php template is populated with posts... great. However I want to also be able to create another ...
0
votes
1answer
1k views

After being hacked Fatal error: Call to undefined function get_header() in 404.php on line 1

After having timthumb.php exploited. The site was upgraded to WP 3.5 It was compromised again, (wp-config included encrypted data as well as the functions.php in the wp-include directory. After ...
0
votes
2answers
4k views

Get menu item slug

I use custom menus and I’d like to get the menu item slugs. Is that possible? // Get the nav menu based on $menu_name (same as 'theme_location' or 'menu' arg to wp_nav_menu) // This code based on ...
3
votes
2answers
890 views

Re use authenticated HTTP connection or cUrl handle

We have a bespoke Wordpress plugin, which adds a meta box to the edit post page. The plugin accesses data from a semi-private HTTP REST API. The connection is authenticated (DIGEST) and accessed ...
2
votes
2answers
681 views

Remove Unnecessary Mysql Query

my single posts is getting 31 query from mysql. I checked all queries. I saw this query. I am using last posts and categories widget. I think there query is unnecessary.How to remove theme Query: ...
0
votes
1answer
354 views

Why is it wrong to use admin_print_scripts-{hook} to enqueue a script (.js) file?

According to the Codex, it should only be used for inline script tag(s) in the head. I've been using add_action('admin_print_scripts-{my-hook}' for injecting .js and add_action('admin_print_styles-{my-...
3
votes
2answers
8k views

Defer Parsing of Scripts

this is my first time to try this "Defer Parsing" thing, and I don't really have an idea how to do it. Using PageSpeed tool, I found out that one of the reason why my page is loading too slow (...
0
votes
2answers
608 views

Contributor disable seeing others' posts

How can I disallow contributors on my site from seeing what other posts are published on the site, and only see their own?
-1
votes
3answers
9k views

get main product category list woocommerce

I am using woo commerce theme for my site. I am trying to display a list of main product category list. I tried this code. But it returns all the main and sub categories. $product_category = ...
0
votes
2answers
4k views

How to remove the index.php in the url?

I have installed wordpress in a subdirectory (blog). In the root directory I have installed Magento. Now the file directory is as following: app downloader includes media .... blog/wp-admin My ...
2
votes
3answers
2k views

Make First post different from rest?

Hi i'm using the code below to call post from a certain Category under certain post types, But how do i style it so that i can make the first post different from the rest of the post. <?php $...
0
votes
1answer
226 views

Change layout of post depending on category

I am having two kinds of categories one is events and another is no_category. Posts of Event Calendar are placed under events category and rest are in no_category. As you know what is the default ...
3
votes
2answers
2k views

How to manage multiple domain with different languages on each domain with single wordpress installation?

I need to manage multiple domain with different content on each domain. For each domain I need to manage content in different languages. I found we can use WordPress MU Domain Mapping to manage ...
2
votes
1answer
2k views

exclude ids through post__not_in

I am trying to make a function and exclude in the post query that way im able to define the id's in my function but it is only excluding 1 post instead of the 4 it is returning. any suggestions on ...
3
votes
2answers
279 views

Load visual editor without custom styling

I have a plugin that uses the wp_editor() function to load an instance of the TinyMCE editor. However, the editor is affected by custom styling to make it look similar to the theme through the ...
7
votes
2answers
2k views

wp.media update options and force render on uploader

Elliot here from the "Advanced Custom Fields" plugin. I'm working on integrating the new WP 3.5 uploader into the ACF plugin and can't find much documentation about the new uploader at all! Creating ...
2
votes
1answer
56 views

Text snippets shared across posts

I'd like to add a "fast facts" section to a wordpress site - an area in the sidebar where snippets of text are rotated. Where is the best place to store things like this? Widgets don't really allow ...
1
vote
1answer
739 views

read more doesn't display

I have been reading in the codex about the read more issue. It says when using the_excerpt, the character limit is 55 and then the read more should display which should look like this [...] I am not ...
0
votes
1answer
594 views

Custom Post Title as search term

is there any way to include custom post title as search term. I create custom post types - VHS, DVD, Blu Ray. Then in search box when I write DVD I want to list all posts from custom post type DVD. ...
0
votes
1answer
61 views

Commenting on a post from the admin panel?

I'd like to create a Q&A-type forum for my wordpress site, where anyone can submit a question, and then the forum admin would answer the question and then post the question/answer combination. ...
19
votes
2answers
747 views

Is it ever okay to include inline CSS in plugins?

Normally in a plugin I would add styles using wp_enqueue_style. However, I am currently creating a plugin that only needs a few lines of CSS and I am wondering if it might be better to serve the ...
-1
votes
1answer
457 views

CSS styling not working in a custom metabox

I have some difficulies styling Meta Box content of a custom post. No CSS styling is applied. I made a really simple testbased on what I have read on the other post here. metabox creation: ...
0
votes
1answer
543 views

Check the Comment in Reply or Normal State

I'm currently working with custom comment meta, and I have some custom additional field such as rating etc, when user write a comment ( not comment reply ) I want to show the rating field, but when it'...
0
votes
1answer
2k views

Displaying Overlay images over thumbnail of category type?

How would I place an overlay image over a thumbnail of a certain category. For example. I have the category "Videos" how would i place a playbutton image over the thumbnail, while making it all link ...
0
votes
1answer
447 views

Help with this custom field conditional if no field is set display nothing

I'm using the code below to display an image if the swap_select custom field value is true. If it's no it displays nothing. However when posts are first created no custom field exists. So what would ...
0
votes
1answer
441 views

Displaying custom profile fields using Mingle Plugin

I am using the Mingle plugin to add some networking functionality for a website I am creating for a client. I am having Mingle handle displaying user profiles and friends, but WordPress to actually ...
0
votes
3answers
199 views

The issue of redirecting my site to a new domain

I have encountered some problems after I have redirected my site, which is in a sub directory in my server, to a new domain. I have kept the same server. The origin URL of my wp site http://www....
0
votes
1answer
102 views

Silently register plugin pages

I am developing one of my first plugins, and have come across a error: You do not have sufficient permissions to access this page The plugin has a wizard that uses several forms, obviously I don'...
0
votes
1answer
587 views

How to make page template with admin able to select NextGen Galleries to be part of the layout?

I'm trying to make a product page template, editable by client, which will have 3 different NextGen Galleries per page. In the product page admin area, I want the client to be able to select which 3 ...
0
votes
1answer
468 views

Difference between Option_Group and Option_Name in Register_Settings

I think the title pretty much says it all! I'm working my way through various tutorials on how to add an options page to my test plugin and am struggling to understand the Register_Settings function. ...
6
votes
1answer
10k views

Can a custom post type have a Parent Page?

I've seen a lot of posts out there in the Webiverse about assigning a page as a parent of a custom post type. After four hours I can't find a solution and need some help. I've create an "About" page ...
0
votes
1answer
104 views

WP_LINK_PAGES Generating Unnecessary </p> Tag

This is the current output for my WP_LINK_PAGES, notice the unnecessary </p> tag at the end. My code for my custom WP_LINK_PAGES can be found here. <div id="link_wrap"> <span class="...
0
votes
1answer
2k views

Activating child theme returns “active theme is broken”

I was using the Pinboard theme, but want to make modifications to it. Instead of editing the theme files directly, I wanted to try to make my changes using a child theme. Following the codex, I ...
0
votes
1answer
43 views

Closing WP_LINK_PAGES DIV ID w/After Argmuent

In my code below I need to close the div "link_wrap" which I created with $args['before'] = '<div id="link_wrap">'; When I try to paste $args['after'] = '</div>'; above return $args; it ...
7
votes
2answers
3k views

What is “main query”? [duplicate]

Possible Duplicate: How to know which one is the main query? I'm curious to know what is the so called "main query"? What I have is two queries on front page. if (have_posts()) : while (...
0
votes
2answers
76 views

Proper Javascript Implementation

Instead of calling a script from a file, I put a number of my javascripts in a template file called codes.php. I then call codes.php in the footer by pasting <?php include (TEMPLATEPATH . '/codes....
1
vote
1answer
425 views

Display comments on a comment page without form

I'm using this to allow me to display my comments for posts on category pages: <?php $wp_query->is_single = true; comments_template(); $wp_query->is_single = false; ?> However I don't ...
0
votes
1answer
588 views

Redirect after get_delete_post_link

I've created a custom post type with front-end submission. I added a delete link using get_delete_post_link ... which works great, except it brings me to a "Page not found" after the post is deleted. ...
0
votes
1answer
446 views

Custom priority with the_content filter based on user input

Currently, in my plugin Contextual Related Posts, I have an option to automatically add the related posts to the content using add_filter('the_content,'ald_crp') I know I can change the priority ...
0
votes
1answer
105 views

WordPress Multisite Dilemma!

We are running our main domain as a WordPress install from past 3 years and were adding sub-domains as seperate WordPress installs. With the time, we thought that it would be a better idea to have our ...
0
votes
2answers
3k views

Blog Page pagination not working, loads Page 1 each time [duplicate]

I don't know what to do here but pagination is driving me crazy! As you can see, "Older" points to blog/page/2 but when clicked, the site stays on blog/. I'm using wp-pagenavi for pagination. The ...
0
votes
1answer
232 views

Custom Post Type Loop breaking php

My While loop is breaking the rest of my PHP on the site. Below I put my code that is working but again breaking the rest of the site. Any Suggestions $query = array( 'post_type' => 'slides', '...
1
vote
2answers
309 views

How to change the image size in new Media Uploader (ie use medium vs thumbnail)

Is it possible to change the image size of the thumbnails in the new media uploader? For example images are currently displayed using the "thumbnail" image crop size and I would like them to be the "...
1
vote
2answers
789 views

variables in translatable text

I am adding a list of suggested plugins to my theme using TGM Plugin Activation - https://github.com/thomasgriffin/TGM-Plugin-Activation/ However, when I run theme check, about 40 or so ...
-1
votes
1answer
1k views

How can I add multiple content-editable blocks without a plug-in?

I'm using WP as a CMS, not a blog. I have a lot of pages (not posts) that need to have different content per page in the sidebar. The content (html, images, php) in the sidebar will be different ...
5
votes
1answer
787 views

get_query_var() not working in pre_get_posts

I'm using the pre_get_posts hook to order the main query on all my custom post type / taxonomy pages using a custom meta value. As part of the logic, I am trying to determine which taxonomy is ...

15 30 50 per page