Linked Questions

-1
votes
1answer
60 views

Themes VS Plugins [duplicate]

If I am customizing a WordPress site, should I do that via a theme or a plugin? By customization I mean: Add new custom post type Add new fields to the Users Add new widgets Add custom permalinks ...
221
votes
108answers
102k views

Best Collection of Code for your functions.php file [closed]

Please vote on the question and any answers you find useful by clicking on the UP arrow on the left hand side of the question or answer. As with many others who are now viewing this post, I have been ...
24
votes
4answers
15k views

Filter to remove image dimension attributes?

I'm working on a site based on a fluid width css template which sets a max-width on images to the width of the column containing them, and I need to remove the inline width and height dimension ...
13
votes
3answers
2k views

Where do I put the code snippets I found here or somewhere else on the web?

Many posts here or somewhere else contain code, but they do not say where to put it. Example: I have found this post: How do I turn off 301 redirecting posts (not canonical)? I'm a newbie with PHP. ...
4
votes
4answers
358 views

One Child Functions.php for Multiple Child Themes

I have a wordpress setup that I use for clients with around 30 or so child themes that they can choose from. Each child theme has it's own functions.php file currently. Is it possible to setup just ...
7
votes
2answers
3k views

Creating a Custom Post Type as a Plugin? Why?

I've been experimenting with creating a Custom Post Type as a plugin (because I've seen this recommended in various places). But I have a question not about the how, but rather the why of building ...
3
votes
1answer
3k views

How to create thumbnails for PDF uploads?

I'm developing a website that needs to allow users, within Gravity Forms, to submit a PDF file and have a JPG thumbnail created of the first page of the PDF that is then displayed in the created post. ...
2
votes
2answers
756 views

Advantages and disadvantages of using automatic-feed-links

What are the advantages and disadvantages of using add_theme_support('automatic-feed-links') in my functions.php file?
6
votes
1answer
1k views

Allow Editors to edit pending posts but not draft ones

I have a large number of users with Editor Capabilities that help to go through the post submissions. This is my current setup for this role: As you can see, they are allowed to edit_posts and ...
0
votes
2answers
1k views

Reset Roles (or undo role changes on theme change)

I am creating a theme that deletes some user roles that are not necessary and creates others. (It deletes author and contributor and renames subscriber). Everything works, but on theme deactivation, ...
1
vote
3answers
1k views

Build a list of partners with Link, Logo and text

I want to build a list of partners. At the moment, I have tried with the "links" function, the problem is that I can't use html tags on the description field. Therefore I'm looking for another ...
2
votes
2answers
789 views

How can I add a jQuery OnClick event to the Publish posts button?

I want to add a simple confirmation event to the Publish posts button, so when my client hits "Publish" it will ask him if he's sure, to which he clicks "Yes" or "cancel" and the post then publishes ...
2
votes
1answer
472 views

Set default text for the editor in new posts

I was wondering, is it possible to set default text to appear inside "text" part of the wysiwyg located on Create post page? So every time you click add new post that text would be there waiting for ...
0
votes
1answer
714 views

How to stop WordPress showing a virtual Robots.txt?

I can see the robots.txt file here : http://persian.cc/robots.txt But Google can't ! I know that I can find robots.txt files in the root of a website, but hey there is no robots.txt file in mine ...
3
votes
1answer
203 views

Add “Last Edited by” column to custom post type list table

Currently I use the "Admin Columns Pro" plugin for Wordpress to modify some of the columns in the backend. The plugin contains functionality to display the post (or in my case, product) author as a ...
4
votes
1answer
496 views

xmlrpc_enabled filter not called

Since WordPress 3.5, the core developers have decided to keep xml rpc enabled by default and there are no options in the Admin to disable it. This blog post explains how to disable it by modifying ...
1
vote
1answer
575 views

Creating a custom multilingual form

I need to create a special form for my website where users cand specify a series of data including some textfields, combo boxes and sliders (from 0 to 100). Also I need this form to be qTranslate ...
1
vote
1answer
431 views

Merging PHP download script into `functions.php`

I run a large mixtape download site on WordPress. I'm currently developing a new theme and I'd like to include as much site functionality into the theme's functions.php. For serving the downloads, I ...
0
votes
3answers
515 views

Custom Post Type Archive Template

I have similar problem to this one: Custom Post Type Template - Archive I have a WordPress custom post type called coupon. I try to assign the template to it by using archive-coupon.php, but it goes ...
1
vote
1answer
500 views

Getting Custom Post Type content from main-site of a Multisite

I have a multi-site network with 3 sub-sites: Is it possible to "link" or include custom post to all 3 sites from the main site? By include or link I don't mean to make other sites to edit them, ...
2
votes
1answer
496 views

How to change the link “Edit my profile”?

I am setting up a new membership website. I only have one issue that I can't resolve. Once a member is logged I don't want them to go to the dashboard to edit their profile but instead to the website ...
0
votes
1answer
465 views

Adding a template in WPTouch

I am creating a mobile version for a site. For that I am using WPTouch not WPTouch-Pro. Now I want to add a form in my page. For desktop version I used template to add form. But in mobile version ...
2
votes
1answer
379 views

Display custom list of tags in post/page editor with hooks

I used the information posted on this blog post to display specific tags when editing a post. The editors on my site wanted the ability to display pre-specified tags instead of the most popular ones. ...
3
votes
1answer
269 views

Restrict acceess of a page in backend

How can I restrict editing of a page from backend only to a specific user? I tried a few plugins but I thought doing it without plugins would be the way to go for me. What measures I can take to ...
0
votes
2answers
209 views

hrecipe microformat tag to “featured image”

I have a website made with wordpress which includes recipes. Now I would like to add the "photo" hrecipe Microformat tag in order to have a thumbnail on Google searches (hrecipe photo tag) My recipes ...
0
votes
0answers
433 views

Incorporate zilla shortcode into theme

I am trying to incorporate zilla shortcode plugin into theme.I have done it nicely but result is not satisfactory.Here is my code <?php class ZillaShortcodes { function __construct() { ...
0
votes
1answer
260 views

How to make my plugin theme-independent?

I need a little help and/or consulting for my next steps. (I'm a beginner!) I've been working on my plugin, using a Custom Post Type "Project", some help from the plugin "Advanced Custom Fields" - ...
2
votes
3answers
320 views

How to insert an Audio Player in a Post or Page?

I have a blog which I sometimes use for audio clips. I want to put an Audio Player on the frontpage of my blog. How can I put the player after the title or make its code part of post excerpts?
0
votes
1answer
241 views

Disable the “remember me” to wp-admin

I Look long enough to find the solution of my problem. Really, Is there any way to disable the "Remember me" to wp-admin? I want to disable it for safety reasons. Thanks in advance.
0
votes
2answers
127 views

Positioning the “Lost your password?” and “← Back to Site”

I'd like to customize the log-in page for my WordPress theme and although I can play around with the CSS, I would love to re-position the "Lost your password?" and "← Back to Site" links to be inside ...

15 30 50 per page