Norcross
  • Member for 11 years, 3 months
  • Last seen this week
4 answers
votes
2k views
How to remove Gravatar from Username column
1 votes

This is an old thread, but just in case someone else needs it: starting in version 4.2, you can use the pre_get_avatar filter to bypass pulling the actual avatar and just sending back an empty string. ...

View answer
1 answers
votes
4k views
Register/Login using only phone number?
-1 votes

you can change the type of data used for signing in for the username portion, assuming it's data that you have stored about the user (either in the main user table or usermeta). there would still need ...

View answer
1 answers
votes
3k views
retrieve custom image sizes from media uploader javascript object
Accepted answer
9 votes

thanks to a friend on Twitter, I was able to get this working. Below is the code. function wpse_110060_image_sizes_js( $response, $attachment, $meta ){ $size_array = array( 'custom_size_one',...

View answer
2 answers
vote
1k views
Remove template drop down for certain pages
1 votes

One thing to consider: if you name the template file page-{$page_slug}.php or page-{$ID}.php (matching the page in the admin interface/area/backend) then it will load that template without it being a '...

View answer
4 answers
vote
2k views
How to add a class when there's no sidebar?
Accepted answer
0 votes

if you are using an actual page template (as selected in the dropdown panel in the admin area) then using is_page_template('file-name.php') in the body_class function will do it. then, the CSS would ...

View answer
2 answers
votes
234 views
How to Keep footer link remain intact?
Accepted answer
2 votes

If you are releasing a GPL'd theme (which WP requires, but not looking to start the whole GPL debate here) then you can't prevent someone from removing your footer link. You can ask they they don't do ...

View answer
2 answers
vote
219 views
Sync comment data
2 votes

After some more thought, I got it figured out. It involves multiple functions to go through each step of the process, but here it is: https://gist.github.com/4355955

View answer
4 answers
votes
10k views
How to set a custom post type to not show up on the front end
Accepted answer
7 votes

Another option would be to set a 301 redirect for all the slideshow CPTs to redirect somewhere (like the home page). This would get picked up by Google, and also make sure no one accidentally gets on ...

View answer
1 answers
vote
890 views
Illegal characters in URLs
1 votes

This plugin should allow you to do that http://wordpress.org/extend/plugins/wp-utf8-sanitize/

View answer
3 answers
votes
10k views
Add a .last class to the last <li> in each ul.sub-menu
2 votes

something to consider: while IE7 and IE8 don't support last-child, they DO support first-child. so depending on what CSS you need to apply differently to the last item, you could reverse it. also, ...

View answer
2 answers
votes
442 views
Multiple Authors on a Single Blog
0 votes

Absolutely. There is no limit (in theory) to the number of users. You'd probably want to look at the user roles to give different people the proper amount of access.

View answer
3 answers
votes
2k views
How to create a Wordpress plugin for another wordpress plugin?
1 votes

FWIW, you can increase the plugin version number so that it doesn't auto update. while its not the best solution, it'll solve the immediate problem. You could also change the naming and filenames so ...

View answer
3 answers
votes
2k views
changing wp-admin/widgets.php
0 votes

the short answer is you can't, not without touching core. however, you can set the description of each widget area (the text underneath the widget area title) in the register_sidebar function.

View answer
4 answers
vote
2k views
Using one WP_Query object within the loop of another WP_Query object
0 votes

I'm not sure you can merge the two loops together, since there isn't anything to keep them separate from a data standpoint. Are you trying to add data from a testimonial into the rotator as it goes?

View answer
2 answers
votes
217 views
Hide Selection of Text From Archive, but Show on Single Posts
2 votes

A slight modification on the function above. You'll want to use is_singular('post') instead, unless you also want to target other areas add_shortcode( 'hidetext', 'rkv_hidetext_shortcode' ); ...

View answer
1 answers
votes
53 views
I want to remove the http:// that is added automaticly on the user profile adress
1 votes

That's baked into core, and would be difficult to filter out. You're better off adding a new field specific for what your goal is. It'll get stored as a text field, and can be used however you please. ...

View answer
2 answers
votes
2k views
On new server, site got hacked, permissions a bit strange? Please help
0 votes

I would strongly suggest checking the site out with someone like Sucuri Security since often times these hacks leave various backdoors to let themselves back in, or remnants in the database itself. It'...

View answer
1 answers
votes
595 views
Dictionary-style definition list plugin
1 votes

According to the documentation on that plugin, the capability to create custom fields is included.

View answer
3 answers
votes
6k views
Adding jquery and thickbox to WordPress theme
Accepted answer
1 votes

You need to use the wp_enqueue_script function (in your functions.php file) to call the relevant scripts you need. It allows for both built-in libraries and to add any custom that you're including in ...

View answer
1 answers
vote
147 views
Disabling archives, search results, comments, etc?
1 votes

Two separate parts to consider: comments / trackbacks and archive pages. If you don't enable comments and trackbacks, no links will exist for them, thus a 404 or redirect won't be necessary. You can'...

View answer
1 answers
votes
553 views
paginate posts on admin page
Accepted answer
1 votes

This is what ended up solving it (I'll include the relevant parts) $total = wp_count_posts()-&gt;publish; $perpage = 10; $curpage = isset( $_GET['pagenum'] ) ? intval($_GET['pagenum']) : ...

View answer
2 answers
votes
450 views
wordpress showing all posts instead of date range
0 votes

You've overwritten the query. I would set it up this way: remove the query_posts and reset_query parts and have a standard loop save the file as archive.php if should paginate on it's own, and the ...

View answer
2 answers
votes
4k views
Custom post type archive category page results in 404
Accepted answer
1 votes

Two things: You shouldn't be using 'category' as a slug, since it's already built into WP and thus is reserved (http://codex.wordpress.org/Function_Reference/register_taxonomy#Reserved_Terms) ...

View answer
3 answers
votes
3k views
Image Captions Have a 10px Extra Margin, And It's Not CSS?
1 votes

Fancybox (or some other javascript / jQuery element) is setting the width of the image in your markup. If you look at Firebug, you'll see the div element width as 471px, which is 10px wider than your ...

View answer
6 answers
votes
23k views
Add a Meta Box for uploading a SECOND Featured Image?
2 votes

I'm one of the developers that maintains this metabox class. it includes an upload field that you can use. https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress

View answer
2 answers
vote
667 views
Keep post's draft date after publishing?
Accepted answer
0 votes

you need to manually set the publish date.

View answer
1 answers
votes
121 views
I need a custom Login Registeration in WordPress can somebody guide me?
1 votes

the developer license of Gravity Forms has a user registration add-on.

View answer
1 answers
votes
434 views
Changing the Permalink Structure without Resetting the Facebook Like Counts?
1 votes

not possible. FB and twitter is counting the actual URL, nothing related to WP in specific. even adding or removing the www from the URL will cause the numbers to reset. FWIW, changing it back will ...

View answer
2 answers
votes
234 views
How could a Widget behave differently depending on sidebar
Accepted answer
2 votes

there isnt a clean way of handling this, since there isn't a conditional for checking which sidebar is in use, just whether or not it exists. however, you could do the following: make two different ...

View answer
6 answers
votes
6k views
How to reorder and display a feed to be chronological?
0 votes

setting up a CPT would still be preferred, so you could add a meta field for start date. each post type would have its own RSS feed independent of posts.

View answer