Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (14)

1
vote
1answer
475 views

Multiple Blogs on one site. Best Practise

I've been tasked with adding a blog to an already up and running client site. The site uses wordpress as it's CMS already. So a blog install should be a relatively simply task and simply a matter of ...
0
votes
2answers
31 views

How to create functions that affect only a specific user

I am customizing the WP admin area and want the functions I am using to only affect a specific user. Any Ideas on how to write this?
0
votes
1answer
364 views

Displaying posts limit: can't get pagination to display [duplicate]

Possible Duplicate: Pagination not working with custom loop I'm creating a custom page for logged in current users to view their posts. I would like to limit the number of displayed post to ...
0
votes
1answer
49 views

How to set up conditionals in page templates?

I have created custom template page like this with a custom query on page showing only details fetch from my custom table not any post. /* Template Name:product */ <?php get_header(); ?> ...
3
votes
0answers
123 views

How to store foreign language characters in WordPress? [closed]

I am building a membership site in WordPress. I have added a Notes functionality on my site where each unique user can login to the site and enter notes specific to each lesson/post. I am storing ...
1
vote
0answers
491 views

Skeleton Child Theme Add Icon Bar to Header Flex Grid

Skeleton Child Theme Version 1.6 WordPress Version 3.4.2 Child Theme installed on main Multisite: public_html, wp-content, themes. My CSS, PHP Coding skills = NOVICE What I've done: Using the ...
1
vote
2answers
72 views

Sidebar links for different pages

Hey all i am wondering what i need to add in order to have a different sidebar for a set page? I created a category for the page (called PatientEdu): And made sure the page was linked to the ...
0
votes
1answer
50 views

Plugin: database creation

Can someone tell me what's wrong with this function? function xattachments_db_install() { global $wpdb; $xattachments_db_version = "1.0"; $table_name = $wpdb->prefix ."xattachments"; ...
0
votes
2answers
375 views

Pagination for two loops

I know this has been discussed before but I can't seem to make it work with any of the solution posted in other topics. How can I make pagination to work on a loop like this: <div ...
1
vote
0answers
61 views

How to build a simple nav system of custom post type categories and its posts?

I've been searching the web for a long time now, but couldn't find a solid simple anwser to, what seems to be a basic question: I have to output a list of custom post type categories and the posts of ...
0
votes
1answer
237 views

WP_Query breaks pagination

I've been on this problem for a week now. I've searched through countless posts that just aren't answering the question. It seems that my wp_query breaks pagination. I've looked through a lot of the ...
2
votes
1answer
199 views

wp_query to display custom taxonomy terms

I have a custom post type named 'tours' and custom taxonomy named 'tourtypes' so i can categorize it into terms like 'cultural tour', 'sports tour' etc. I'm not the original author of this theme and ...
3
votes
1answer
119 views

What is the best practice for customizing a plugin's JavaScript/jQuery?

Most well written plugins support a safe means for a developer to customize/theme the plugin by copying PHP files to the theme directory and modifying the copies rather than the original plugin file. ...
0
votes
1answer
453 views

Call javascript functions from each page

Is there a plugin that supports calling custom functions that you've created? Like, page A -- I want to call function x $(document).ready(function(){ call_function_x() }); page B -- I want ...
2
votes
1answer
395 views

Programmatically adding posts

I'm about to create parser which would be inserting new custom posts. So, it's pretty simple global $user_ID; $new_post = array( 'post_title' => 'My New Post', 'post_content' => 'Lorem ...
0
votes
2answers
106 views

My posts show 2 comment forms

We have a Wordpress site, lifering.org, hosted on GoDaddy. We recently upgraded our virtual server's Linux operating system, which involved rebuilding the site from a backup. Now I our single ...
1
vote
1answer
553 views

Limit the Excerpt field in WP-Admin in words

Is it possible to limit the Excerpt field on the post page in words? Note that I am aware that it's possible to echo the excerpt and limit it in words, but I want the field itself to limit the amount ...
1
vote
1answer
182 views

I want to display custom text widgets for each post in the sidebar?

Ideally I am looking for two text boxes added to the 'Add new post' admin page, and the data from those two boxes be displayed in the sidebar when viewing the post page. So the sidebar displays the ...
3
votes
1answer
29 views

how to enable different number of revisions for different blogs when using WPMU?

for example i would like blog1 to have at most 3 revisions for each post but i want blog2 can have at most 10 revisions since this blog may have more than one editors that i want to enable this blog ...
0
votes
1answer
231 views

If two users attempt to modify a page, does Wordpress still work correctly?

I am worried about allowing more than one user of my Wordpress installation use Wordpress at the same time. What if one user updates a page or deletes a page while the other user is editing it? How ...
1
vote
1answer
969 views

Creating a rotating header /image slider using theme customization

So I'm learning WP and I want to create a rotating image slider for the header (like in this) using Theme Customization API. But I can't figure out how to and what setting should I use to take the ...
1
vote
0answers
131 views

404 (category, pages, archives) when using custom rewrite rules

I'm using www.domain.com/%POSTNAME%/CAR permalink structure (CAR is the variable i need to extract. After adding the code to the functions.php the other wordpress url's stopped working (category, ...
0
votes
1answer
824 views

Split content into multiple columns using more tag?

First of, this is pretty much an exact duplicate of: Split columns into three+ divs? But the given solution does not work (returns blank). I'm guessing it collides with qTranslate which adds some ...
0
votes
1answer
1k views

Edit the_content() function so to add a div wrapper

Currently my article is displayed like this: <div class="post_modul border_b"> <div id="attachment_61891" class="wp-caption alignnone" style="width: 478px"> <img ...
0
votes
2answers
1k views

Show default content if custom WP_Query has no posts

I have a custom loop to show posts that meet a certain set of $args like this: <?php $recent = new WP_Query( $orderargs ); while($recent->have_posts()) : ...
1
vote
1answer
601 views

Multiple keyword search

I have a custom search where I want to enter a keyword or phrase into the search box, and then by pressing enter it adds it to a 'search storage' (already coded, see below). Asume I have 3 posts, one ...
2
votes
3answers
496 views

Will activating a different theme preserve custom settings to current theme?

I have theme A currently active, and theme A has custom settings (like header image, custom CSS, etc). I am having issues with theme A, and want to activate theme B while I troubleshoot these issues. ...
2
votes
1answer
72 views

User fields that can be edited by administrator?

How can I add custom user fields for a user profile that an administrator can edit? I want the user to be able to see the value of the field on their profile, but I don't want them to edit it. How can ...
1
vote
1answer
323 views

Multiple sites/domains with content all managed by single installation of Wordpress

I've had an interesting request from a client, and subsequently spent a couple of hours looking into it. The crux of it is exactly as the title of this post suggests: they have 3 separate sites with ...
-2
votes
1answer
42 views

Problem display

Hy I have this code: <?php $id_film_array = get_post_meta(get_the_ID(),"info_film", true); $id_film = $id_film_array[0]; $titlu_film = get_the_title($id_film); ?> <?php ...
2
votes
2answers
3k views

Can I create front-end editable user profile pages with Wordpress? How do I do it?

I'm trying to build a WP site where using the front-end, each user can: Register through the front end using basic fields Log in Create their own profile page using multiple forms Upload text, image ...
1
vote
2answers
107 views

Page-loop is looping content from custom loops on the same site. How to avoid that?

i've made a custom home-page (with a template) and i'm using three loops on this site: two category-loops and on the bottom of the site the main loop for the page (the page content). the problem is: ...
0
votes
1answer
55 views

Multiple item layout with one query

in my homepage I have content boxes with different layouts. Every box has an image and the post title corresponding to a single post. How should I use only one single get_posts() and format the layout ...
4
votes
1answer
112 views

Any way to create a revision of a post ONLY with a new button in the Meta Box?

Quite sure there isn't a way baked in to do this, but anyone have any ideas on how I would get something like this done? I want to turn autorevisions off and ONLY have a revision created when a button ...
1
vote
1answer
107 views

pull non-wp site into content area of wordpress -or- pull wp header into non wp site?

I am building a site which has a ecommerce nature that is not able to be tied directly into wordpress. What my goal is to have a constant header that is generated by my wordpress header on all pages ...
1
vote
3answers
839 views

Buddypress Add unserialized Profile Fields in Members Loop [closed]

I'm trying to show profile fields with checkboxes and drop-downs in the members directory loop. Example: Next to each member in the directory I want to show the Gender they selected This code works ...
0
votes
1answer
1k views

Search URL parameters query [duplicate]

Possible Duplicate: Custom search form with empty parameters Hopefully this is a quick one, but I've hit a wall here. I have multiple search terms, keyword, category, country and date. ...
0
votes
1answer
41 views

Pull certain Wordpress posts on custom CMS instead and 301 wordpress to it?

Say a site has its main custom CMS on www. and a wordpress blog on blog. Up to now some really good reviews have been posted over years on blog. but believe now they would be best served on www. Is ...
0
votes
2answers
507 views

How can I allow users (subscribers) to download selected posts into a single PDF? (RESOLVED)

I currently have a members area for subscribers. I have already setup the ability for users to 'favourite' posts and add them to custom folders of their choice. Once they have added some posts to a ...
0
votes
1answer
433 views

How to integrate video slide using custom post types?

currently i know how to make a jquery slider and pull images by get thumbnail . But is there any way to make a option (using custom post types/custom fields/meta boxes) to get a video by id and show ...
3
votes
1answer
95 views

Multisite, turn off “create new site”

If someone enters the wrong URL to my wordpress multisite, they get the option to create another site in the network. Why does this happen, and how do I turn it off?
1
vote
1answer
144 views

Users can only view their content from the front end

There was a great answer to how users can manage their posts only from the back-end. What I am wondering, is how to allow users to only see their posts, pages, etc, which have their user id attached ...
-1
votes
1answer
81 views

Change the behaviour of archive cpt category and single cpt by plugin, not by theme

I need to know: I have wrote at 60% one plugin, it works well in backend (some settings, some cpt, some custom fields... nothing special). It uses custom post type with custom fields. For now I need ...
1
vote
1answer
160 views

problem in uploading attachment to custom directory

i have been trying to upload the attachments to the custom directory without affecting the old uploads. so i use this bellow code to achieve that add_filter('wp_handle_upload_prefilter', ...
2
votes
2answers
347 views

Remove Author Slug & Replace With Username

I reviewed all related questions but none tackle this exactly so I'm posting the question in hopes the pro's know how to handle this. I would like to change the author slug to remove the term /author/ ...
0
votes
1answer
950 views

add button to post edit page when post_status=publish

Question what hook can be used to add a custom button to the 'Publish' metabox on the 'Edit Post' admin page? Use case I have a hand-rolled custom post type called ash_newsletter. I want to add a ...
5
votes
2answers
400 views

Does Extending Multiple Nav_Menu_Walkers Allow Nested Menus?

Essentially I'm trying to add multiple sub nav menus and I'm pretty close but I just can't seem to find the right tack to solve my problem ... I'm using a variation of a Stu Nichols CSS Menu ... ...
0
votes
1answer
512 views

problem saving/ retrieving custom meta with wp alchemy metabox

I am using WPalchemy metabox class to add a extra meta field to the pages editor which will allow me to attach galleries to pages. I use the class: $gallery_metabox = new WPAlchemy_MetaBox(array( ...
1
vote
1answer
352 views

create custom page for statistical data capture and reporting

I am not too comfortable coding in PHP yet, but am currently working on a project where I need to create a custom page for the website, in a member area, where the members of the site can capture ...
1
vote
2answers
548 views

How to produce a sub-page-system in Wordpress

I am currently new to Wordpress development and I am developing a custom theme with a few custom post types and custom functionality. For the most part, it was pretty easy to find the information I ...