0
votes
1answer
2k views

Display featured image as post thumbnail

i'm trying to set up a mobile theme for my wordpress site. My desktop version uses themejunkie's weekly theme and my mobile version uses dotmobi theme. the Dotmobi theme pulls out the first image and ...
3
votes
2answers
2k views

Wordpress A-Z Navigation

I want to have a wordpress "A-Z" navigation menu like this site "http://www.sharephp.com/" Are there any plugin or a hack for wordpress to do this ?
0
votes
1answer
2k views

How to get category/tag in URL for Pagination links?

I have a custom pagination function in functions.php. If I'm at the URL: http://mysite.com/tag/dogs, the Next link currently just contains /page/2. How can I make it so it will look like ...
2
votes
2answers
2k views

How can I edit a post from the frontend?

I have learned how to create a post from the frontend but how about editing it ? This is the code I am trying to create a simple frontend form for posting. Thank you
2
votes
3answers
492 views

Suggestions for i18n plugin [closed]

Could you please suggest me good plugins (that you have used) for translating a WordPress website? It should be wonderful if you can add as well a pros and cons list with your suggestion. Thanks in ...
6
votes
3answers
5k views

How to know what functions are hooked to an action/filter?

Is there a way to know what functions are hooked to a particular hook? For example if I'd like to know what functions are hooked to the wp_head hook.
0
votes
1answer
101 views

Your ideas on my though “delete or move all of the posts in a specific category when 3 days are passed”

I need to clean up my database and I think that a way to do and keep it that way is by deleting all posts that have 3 days of life. One good thing is that those posts I want to delete are in a ...
0
votes
1answer
213 views

Exclude a category from a query that includes its parent category

I am trying to use ids to control the structure of the output of my categories. I need to exclude a category that is part of the parent category that is being queried. What I am trying is : ...
0
votes
1answer
335 views

Custom field values get deleted

I created a custom post type:products which also has custom fields: price & shipping. Occasionally, if I leave the edit product window open or refresh it, I lose the values inside price and ...
12
votes
1answer
3k views

Custom Post Type Templates from Plugin Folder?

I'd like to offer my custom post type as a Plugin, so that people can use it without touching their theme folder. But custom post type templates -- such as single-movies.php -- reside in the theme ...
1
vote
1answer
191 views

Multiple Meta Boxes in separate files

So here's the problem, I want to have a few different meta boxes on my sites, but I'd like to be able to store each of them in separate files and included them into functions, so I can just copy ...
1
vote
1answer
3k views

Displaying a checkbox array from advanced custom field

I'm using the advanced custom field plugin for wordpress and wondering if I'm able to do the following: If checkbox ticked = web and it equals the page title echo this. Does anyone know what code to ...
-1
votes
2answers
4k views

Call to undefined function issue

I know there are other, maybe better ways to do what I want to achieve, but I have to use this solution. I have two stylesheets: style.css - normal stylesheet style-dynamic.php - dynamic stylesheet ...
1
vote
1answer
358 views

Automatic jQuery accordion from header tags

I want it to be fairly easy for the post author to setup an accordion, based on header tags. So for example this: <h3>Headline 1</h3> <p>Content.. lorem ipsum</p> ...
3
votes
3answers
2k views

How to let contributors to create a new revision(draft) editing their published posts

I'm using a custom post type to let contributors have a personal page on the site. Any time a user registers to my site a script creates a custom type post that has the registering user as author. To ...
2
votes
3answers
4k views

Hide page visual editor if certain template is selected?

How do I hide the page editor (WYSIWYG editor) if the current page is set to a certain template. I have the following code already to add in custom meta boxes when certain templates are chosen: ...
0
votes
1answer
249 views

Comment reporting for Multisite

I'm trying out the 2 comment reporting plugins that I know about in a multisite installation. AJAX Report Comments Safe Report Comments Both don't work - various javascript errors and (I assume) ...
5
votes
3answers
383 views

How to: Update live sites theme from version control repo via plugin or library? [closed]

Maybe someone knows how i could update my live sites theme from a version control*) project repository. Point is that it's really time consuming if you got your theme hosted with version control (as ...
0
votes
2answers
3k views

Limit number of posts on a custom category template - breaking pagination

The following code was mentioned from one of the commentors, however it is breaking the pagination. Any corrections please <?php include(TEMPLATEPATH. '/includes/headline.php'); ...
-1
votes
1answer
60 views

Plugins Page - “Page disabled by the administrator”

I've encountered an issue on a site I'm looking after. The 'admin' account no longer has access to the plugins page, if I try and manually type in the URL to the page, I get the following error: ...
4
votes
1answer
1k views

Does wp_insert_post validate the input?

If I use the wp_insert_post in a plugin, will I have to check the content for SQL injection problems and XSS or will the wp_insert_post function do this for me?
1
vote
2answers
165 views

Redirect from home page to post list page?

There is a site at http://theprimarkonlineshop.com that I want to be redirected to http://theprimarkonlineshop.com/category/blog when a user enters the site. I've tried some stuff like ...
3
votes
1answer
54 views

Migrating users from .com to .org?

I am in the process of migrating my blog from my wordpress.com address to a self-hosting (wordpress v3.1.2) address. Blog has migrated across nicely. Appears my users have also migrated across, but ...
1
vote
1answer
909 views

Wordpress Fancybox Resize Large Image

I have a wordpress users that aren't very good at resizing images so when they upload an image to wordpress it's still big > 3000px. They can import into a post and a thumbnail is generated. When ...
1
vote
1answer
2k views

register_taxonomy and register_post_type does not work [closed]

I have a problem using the register_post_type and register_taxonomy on my Wordpress. I created the code on my functions.php and it does not update my panel. Why? //Categorias personalizadas ...
0
votes
1answer
669 views

Plugin to display weekly schedule that can be edited via admin panel

I am working on a simple wordpress site for a fitness club. They require a simple wordpress plugin that displays a static weekly schedule for their theater. They need to be able to specify what ...
1
vote
2answers
971 views

Setting up WordPress playground and deploying to production server?

I would like to have WordPress on my local OS X machine to test out different themes, content, etc and then deploy it on to the production Linux server. I'm using WordPress for my website and ...
4
votes
1answer
764 views

How to resize images in wordpress without adding any compression or changing the color profile of the images, possible?

As you can guess from the title, Im looking for a solution that allows me to alter the way Wordpress processes/saves its newly created images according to the media settings in the dashboard. This is ...
0
votes
1answer
142 views

What is wp_check_invalid_utf8?

The following function checks option, if *blog_charset* is not utf8, than return original string. What is the purpose of this? function sc_check_invalid_utf8( $string, $strip = false ) { $string ...
0
votes
1answer
871 views

what's different between esc_attr, htmlspecialchars and htmlentities

Can I simply use htmlspecialchars instead of esc_attr?
2
votes
1answer
333 views

post count is wrong when using same taxonomy for 2 different CPT

1 custom taxonomy registered for 2 different CPT (custom post type). When i entered to edit tag section on edit-tags.php?taxonomy=mytaxonomy&post_type=cpt1 it displays total post count of 2 ...
0
votes
1answer
45 views

Looking for a good way to include php code in posts, but using special include markup rather than direct php code

Ok, bit of a weird one... I want to include php code on one of my pages within the content by adding something like: Welcome to the payment page [paymentform] Blash blah vlha... And then ...
6
votes
2answers
742 views

Code Formatted with SyntaxHighlighter Evolved Appearing Incorrectly on iPad/iPhone

I have just started a programming blog and I am using the SyntaxHightlighter Evolved plugin to format my code. On most browsers this is working just fine. However if I attempt to view the site from ...
1
vote
1answer
243 views

Comments offset

I need to display comments starting from the second, omitting the first. With posts I did it using "offset" but I can't find anything similar for comments. Since I'm using threaded comments, must ...
0
votes
3answers
3k views

How to enable hierarchical permalinks for hierarchical taxonomies

If you have a category called "term" and a subcategory called "subterm", your can access subterm posts at /cat/subcat. But this doesn't work out of the box with custom taxonomies. They are ...
1
vote
1answer
1k views

Wrap Post count in a span

I'm using this code: $args = array( 'hide_empty' => FALSE, 'title_li'=> __( '' ), 'show_count'=> 1, ); wp_list_categories($args); How ...
1
vote
1answer
1k views

Define new user capability for custom post types?

If I create a custom post type and want to create custom capabilities for that, how do I do this? For example, I want to let my Editors to edit and create and delete posts and pages, but not the ...
1
vote
1answer
202 views

How to use has_archive but disable feed per post type?

What is the best way to disable feeds per post type but keep has_archive enabled?
0
votes
1answer
69 views

Is there a way to specify an extra class for a post or page with no title?

If I do a post or a page with no title, I'm left with an empty h1 tag at the top of the post/page. I'd like to either get rid of the h1 in these cases, or else be able to add an extra CSS class to ...
0
votes
1answer
141 views

Not able to get random post

I want to display a single random post out of the 5 latest posts in the category 'news'. The approach I'm using is this: // Custom function to retrieve catgory ID by category name. $cat = ...
2
votes
2answers
285 views

What is the most efficient way to have two “blogs” on one site?

What I want: Two wordpress blogs with separate cats and tags reggi.com/portfolio/category/example reggi.com/blog/category/example reggi.com/portfolio/tags/example reggi.com/blog/tags/example Site ...
1
vote
1answer
555 views

Query & Order posts by custom fields

I'm trying to query a custom post type "jogos" where the meta value "data_de_lancamento" (launch date) is <= than today's. That field uses the format dd/mm/yy. The returned posts from that query ...
0
votes
2answers
125 views

Excerpt Is Disappeared

My theme automatically assign before of <!--more--> tags, as excerpt.And showing excerpt on home page. Now i want to add Google Adsense after <!-- more --> code. I'm wrote this function ...
1
vote
1answer
370 views

Multiple Page Templates & CSS

What's the best practice for handling CSS on a theme with multiple page templates? For example: I will have a Full Width page template and a 2-column page template. Is it best to just call out the ...
-1
votes
1answer
428 views

Select Custom Taxonomy from Theme Options

I have been trying to get a drop down of my custom taxonomy terms to show up in my theme options page but with no luck. I looked a several posts here and followed the tips but the code just does not ...
1
vote
1answer
393 views

Custom walker to generate menu with integrated breadcrumb dropdowns

Have been trying to write a custom walker class which returns a wp_custom_menu as follows. http://i.stack.imgur.com/lC5cP.png Planning to enhance the different states with some scripting. The page ...
-1
votes
2answers
232 views

Numbering only parent comments

I am actually displaying a number beside my comments putting $counter = 0; before wp_list_comments in comments.php and global $counter; $counter++; inside the comments callback function in ...
3
votes
2answers
954 views

Linking thumbnail to full size image

I use a function in my blog (getImage) to call thumbnails in the loop (it calls the 1st image on the post) but instead of link to the post, i would want the thumbnail to link to its full image src. ...
1
vote
2answers
4k views

How to search for categories and/or tags?

I have a search function on my blog. If I enter a value, say 'fruits' in the search box and it doesn't match in any of the posts but it is the name of a category in the blog then I want the posts that ...
2
votes
1answer
542 views

Report spam button

I can't find any plugin or script to place a "report as spam" button in my comments section. The button could simply: - open a form to report a spammy or problematic comment to the admin - send an ...

15 30 50 per page