Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (10)

0
votes
1answer
734 views

How can I disable the update notice for non-administrators?

As I already told, I'm setting up a Blog for a friend. Next to not being him an administrator but an editor that can make changes to theme options) I have an additional question. I don't want him to ...
0
votes
1answer
1k views

Get_the_terms restrict output

I have a custom post type Holiday associated with a taxonomy Country. On my single-holiday.php, I use the taxonomy to display in the title. For example Holiday in Spain (Spain being the tax) Rarely, ...
0
votes
2answers
861 views

Wordpress noob, assign custom stylesheet using @import or if? Didn't work for me

I'm trying to import independent stylesheets for the blog page, gallery page and the contact page but I'm having some trouble getting this to work. <link rel="stylesheet" type="text/css" ...
0
votes
2answers
184 views

Function Reference Documenting Template Tags for use in Custom Theme Templates?

(Moderators Note: Original title was "custom template / wordpress functions?") I'd like to use a modified WordPress theme template and was wondering where I can find a reference for the .PHP ...
0
votes
2answers
586 views

Get Terms for Page

I'm trying to retrieve the terms of a page's custom taxonomy. When I'm in a post this works just fine: $args=array('orderby' => 'none'); $terms = wp_get_post_terms( $post->ID , ...
0
votes
1answer
227 views

Custom post type menu

The theme I have has its own admin menu using add_menu_page and add_submenu_page. Question: is there any way for me to add custom post types to this admin menu? Instead of the custom post type ...
0
votes
1answer
194 views

Use custom header as WordPress header

My site is running on site say : www.xyz.com My blog is at say : http://www.xyz.com/blog I have one header implemented in my main site, I want to use that header file as a worpress header. Is there ...
0
votes
1answer
433 views

How to change the “All Categories” label within the panel of my custom post type?

I just created a custom post type and a custom taxonomy: // === CUSTOM TAXONOMIES === // add_action('init', 'my_custom_taxonomies', 0); function my_custom_taxonomies() { register_taxonomy( ...
0
votes
4answers
2k views

Adding Properties to User Profile and Displaying in List

I have a site that I am migrating to WordPress, and I have a need to add properties that each of the users can edit (e.g., Address, City, State, Business Name, etc), along with some properties that ...
0
votes
2answers
51 views

Function to remove archive sidebar for custom taxonomy?

I have a custom taxonomy/custom post category and I'm trying to write a function, which removes the sidebar from the archive pages, only when there's a (custom) taxonomy match. The match part isn't ...
0
votes
1answer
26 views

How can I make custom static widgets/areas on my homepage?

I'd like 2 areas on my homepage which will be static but can be editable with tinyMCE or whatever editor WP uses instead of hardcoding HTML in the Widget editing area. What would be a way I can go ...
0
votes
1answer
20 views

Replace a 'Title' tag with a Custom Field

I have this code in my theme: <div class="article-navigation"> <?php previous_post_link('<div class="navigation-item navigation-item--previous">%link</div>', ...
0
votes
2answers
36 views

Creating custom page template

So, on my wordpress site I have page called "Books" and sub-pages, each containing info about some book. It looks something like this: Books Harry Potter, J.K.Rowling Some Other Book, Who WroteIt ...
0
votes
1answer
18 views

Lost password and back to blog in same line

I would like put on the same line "Lost your password?" and "Back to Blog/Site" links. While I'm posting that I take a look to this post and found my solution: Positioning the “Lost your password?” ...
0
votes
1answer
32 views

failing to display a custom font [closed]

I think this is a pretty common issue. I just spent an hour trying to figure out what's wrong... my custom wordpress theme doesn't display a custom font. Here's the code: @font-face { font-family: ...
0
votes
1answer
61 views

How can I make site-wide content editable, for example footer content

I'm new to wordpress, but I have enough developer experience. (the first thing I did was to get a blank template (blankslate) to start building up this wp site). I want to understand what are the ...
0
votes
1answer
23 views

Custom Fields Question

I'm new to wordpress and I am trying to understand these custom fields. I read the wordpress codex page refering to custom fields but I have some questions. I take for example my site. I created a ...
0
votes
1answer
32 views

Insert a field with PREG_REPLACE – strange behaviour

I'm trying to insert a custom field (from the Advanced Custom Fields plugin), and I need to place it within a div which I'm wrapping around an img, right before the img-tag. So basically this is the ...
0
votes
1answer
18 views

Edit specific text on a static page

I'm kinda stuck with my Wordpress development. I must say, I'm a noob at this right now but trying to get more knowledge of this. In Wordpress admin, there is this text editor for editing the content ...
0
votes
2answers
68 views

Displaying One Custom Post Type's Content On Single Post of Another Custom Post Type

I'm currently building a college football blog and I have 2 custom post types: conference and team. Each conference post type will be a horizontal list consisting of each teams' logo and will be ...
0
votes
1answer
50 views

Add custom objects/entities to Wordpress

(I have some experience creating Wordpress themes but no experience in extending Wordpress functionality. I'm sure this must be a very common question, but I don't know how to search for the answer. ...
0
votes
1answer
77 views

Can I use $wpdb for my custom tables in the WordPress database?

I am building a custom application based on WordPress. I have my custom tables in the WP database. Can I use $wpdb to work with them, or is that class solely for the WP related tables? For example, ...
0
votes
1answer
36 views

Convert Custom Table Data Based Plugin To Be Searchable

I've got a client with some very specific requirements for a feature on their WP site for a downloads system. After a lot of scouring of the web I've found an old plugin and made a few changes to ...
0
votes
1answer
27 views

Customise the Category Widget

Similar to my Search Widget question Is there a way to customise the Categories Widget? Again trying to add in extra markup. Thanks
0
votes
1answer
46 views

Adding comments section to website integrated WordPress instance

We've integrated a WP instance into our website, and I was wondering how to render the comments template into the page. I've tried simply adding: comments_template( '', true ); But it doesn't ...
0
votes
3answers
31 views

How to redirect the home page to a custom page?

I had a WordPress site which was moved to a directory called "test". Now, all the urls for the wordpress site is domain.com/test, /test/wp-admin. The main index page is a custom html page for ...
0
votes
1answer
209 views

How To Run Multiple Multi-Site Networks On Same Box [closed]

I'm building a multi-site project locally using the VVV Vagrant VM. I setup a sub-domain multisite install with domain mapping and two sub-sites. Everything works fine. This was my sandbox that I ...
0
votes
1answer
225 views

How to Fix an Archive.php That Displays All Posts?

I am currently working on developing my first large-scale WordPress powered site, and I have run into a major problem in my archive.php file. It loads all posts, rather than the categories/tags that I ...
0
votes
1answer
38 views

Add Class according to the order of appearance

My loop returns five posts and the HTML should look like this.. <ul> <li class="topfive"> ... </li> <li class="topfive"> ... </li> <li class="topfive"> ...
0
votes
1answer
20 views

Custom blog setting directs blog to index page

In WordPress, I've changed the general settings for my web site to use a static page, pointing the Front page to a custom page called 'Home' which inherits from a template page called tpl-home.php and ...
0
votes
1answer
21 views

Custom wp_query - I'm getting 'all' post, not the specific post in the query

Get all post from today, that are of post type 'product' and are in the taxonomy of 'productType' as 'Indica' and in the taxonomy of 'locationCity' as 'Los Angeles' -- However, I get 'all' the post ...
0
votes
1answer
54 views

Extend Screen Options

I'm customizing the WP-admin and want to add a toggle button to switch between the customized admin and the default admin. I'd like to place that button in the Screen Options drop down tab. Is there ...
0
votes
2answers
509 views

Pagination not working on Custom Page Template

I searched a lot on this but I can't figure out why my code is not working. I published a page with slug "blog" that uses a custom built template "page-blog.php" that I build from editing the ...
0
votes
1answer
27 views

Show One Category on Post

How do i go about making the code only show one category? <?php $categories = get_the_category(); foreach($categories as $key => $category) { $url = ...
0
votes
1answer
47 views

How To Style Links in Content Area With <span> Tag Automatically?

This is like a suicide mission for me. I have to avoid CSS because I want to build a website that will help me to create HTML templates for email campaigns. Email readers can't read CSS, so CSS is ...
0
votes
1answer
76 views

Optimize CPT-function with a loop

I want to optimize my functions of a Custom Post Type (CPT). Now I have 10 meta boxes. For each box I have an extra function. The aim is to produce the 10 boxes in one function. I already tried the ...
0
votes
1answer
31 views

How to publish some default pages in Multisite creation?

In multi site environment, I need to publish some pages by default while creating a new site , is this possible?
0
votes
1answer
58 views

List of Events with Multiple Dates: Only NEXT Date

I am currently developing a site http://madstheatre.com that will serve as a resource for Performance and Audition information in Madison, WI. A feature that is preventing me from starting to go ...
0
votes
1answer
23 views

Customizing Users in Admin Area

I know how to customize the users in the admin area of WordPress. I have done it many times. However, I would like to customize the user a bit differently as explained below. I would like to add a ...
0
votes
1answer
96 views

Automatically add image caption with values from a post parent field?

i have a custom dropdown field on post and i would to get the value from that custom field and insert it on each image caption field uploaded to the current post. I have been looking for a way to do ...
0
votes
1answer
96 views

What is the best way to setup Wordpress for version control and PhpStorm while allowing updates

Ok, so I have an active Wordpress website that I would like to put under version control. Since I do keep pretty up to date on core and plugin updates I would think that those items should be best ...
0
votes
1answer
48 views

Get whole <li> linked with wp_list_pages

I'm using wp_list_pages for my sidebar and it works fine to me, i just wanna add new feature which seems is not listed on codex or i don't know how to use it. $args = array( 'child_of' => ...
0
votes
1answer
37 views

Need to have an archive widget which organizes and displays a custom post type using a custom date field

I found a handy plugin at http://www.redletterdesign.net/wp/cpt-archive/index.php for generating a calendar archive using a custom post type. My problem is I need it to organize these posts not by the ...
0
votes
1answer
141 views

How to show only Standard Format post in my custom taxonomy page -wordpress 3.8.1

I want to exclude photo and video categories (ID's 1 and 2 respectively) from my custom taxonomy page. Any suggestions on how can I exclude these two categories from the loop? <?php /** * ...
0
votes
2answers
182 views

how to display a page before the home page

I want to build a wordpress theme in which there is a landing page made by an image and a logo; when the logo is clicked the theme have to go to another page in which there is the navigation bar and ...
0
votes
1answer
78 views

shortcodes - style them or change/remove the square brackets?

I sometimes use for the clients, plugins that are based on wordpress shortcodes,they do offer a lot of options for the clients to play with like adding tabs galleries and so on. But I see that the ...
0
votes
1answer
34 views

What's the right way to share data between widgets?

I've got a few custom widgets in my site, which I'm targeting to specific tags. There may be a case where there may be an overlap in widget targeting, and the desirable behaviour may be to only show ...
0
votes
1answer
87 views

Custom Taxonomy with Custom Post Type Finds No Posts

I've created a custom post type named mfg_ppn and a custom taxonomy called mfg_pp, and they are referenced as $this->cpt_promotion_newsand $this->cpt_promotionin case you were wondering about ...
0
votes
1answer
656 views

How to show featured image in custom post type dashboard post page

I have added this code to my theme to add a new colmum for showing the featured image in the dashboard post page colmum. It's working in wordpress default post page, but not in custom post type (my ...
0
votes
1answer
60 views

Do I need to instantiate the XMLRPC class or any class in another class to access its methods?

I would like to use some of the methods of the XML RPC class, "wp_xmlrpc_server" in my own class. Is this class instantiated already or should I declare it myself? If so how?