Tagged Questions

Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (10)

0
votes
1answer
107 views

Pronamic Info Window

I am using Pronamic Google Maps (http://wordpress.org/extend/plugins/pronamic-google-maps/) to add Google Maps to my post...I would like to do a couple of things: I noticed that the balloon, or info ...
2
votes
2answers
1k views

Have multiple local wordpress installs share a wp-content folder and database

On my local machine, I have multiple wordpress versions installed so I can test the themes and plugins I develop. I was wondering if I could somehow create a central wp-content folder and database, ...
0
votes
1answer
196 views

Recent activity query WordPress

Does anyone know how I can get a list of posts based on their recent activity? Activity such as a new comment, an edit, a new post, et cetera. Some Q&A wordpress themes seem to be using this but ...
2
votes
2answers
62 views

Keep main articles and author blogs seprerate, News / Magazine like site

I am working on a project that requires a CNN like article structure, where there are main articles (published in a magazine 'volume/issue') and authors' blogs separate. The idea is to have official ...
1
vote
0answers
2k views

Extra User Profile Field Upload File / Image

I have been following the following tutorial to try and an upload form to the user profiles. ...
0
votes
1answer
136 views

404 when Previewing an unsaved draft

I just started at a new job and I'm being thrown into some pretty heavy WordPress bugs on their heavily modified system. Basically what's going on is that they have their own CMS that handles most of ...
1
vote
2answers
86 views

Output HTML only on individual post view

I am looking for a way to output some html (javascript actually) on a post view only and not on a main page, tag, category view (where WP outputs several posts). E.g it would be output on this page ...
5
votes
2answers
157 views

Template for individual post designs

I browsed through the suggested posts, and couldn't find anything that was exactly answering my question. I apologize in advance if I'm reposting something obvious here, but there you have it. I want ...
0
votes
1answer
71 views

Semi-Private Comments + page comments -> is it possible?

is it possible to do this: User need to register and can only see comments written by himself or by an admin. Admins can see all comments create a profile page that user can see all their comments ...
2
votes
2answers
3k views

WordPress Paginate $wpdb->get_results

Due to a complex multisite config, I have a query which combines the posts from two blogs and I would like to paginate the results. I am grateful for any help. I have posted my query. ...
0
votes
1answer
347 views

Custom Post Type Rewrite To Include Parent Page(s)

I have a page title "more" with subpage "cities-guide". Said "cities guide" page has a loop that pulls in posts from custom post type "thailife_city_guide". My permalink structure is ...
0
votes
1answer
78 views

How can I add more code to this?

<?php $my_query = new WP_Query( "cat=11&posts_per_page=1" ); if ( $my_query->have_posts() ) { while ( $my_query->have_posts() ) { $my_query->the_post(); ...
2
votes
1answer
816 views

How to Save Different Usermeta Fields According to User Role?

I have created some custom roles using a plugin and I have also created custom user meta fields that are show in the Profile pages of each user (/wp-admin/profile.php) I have a problem with saving ...
4
votes
1answer
275 views

How to search in a Custom Field?

I have a custom post type called LAW. LAW has three custom fields: LAW_DATE, LAW_TEXT and LAW_AUTHOR. I want to build a search page that allows me to search independently each of these custom fields. ...
1
vote
2answers
1k views

How to set up Wordpress in the intranet?

I have been looking for an answer for long time now and have tried on a few alternatives too, but still I am unable to do it. What? : I want to set up Wordpress on the intranet in my workplace most ...
0
votes
1answer
103 views

Take excerpt of the content of the post and send it as the title to create new post

Explaining my goal: I would create the title by taking the first words of the post content. Ex: In the Admin interface would be the title field blank and the first 10 words of content would be sent as ...
2
votes
1answer
568 views

Different fields in My Profile page depending on user role

So I understand that I can user current_user_can to check the role of the current logged in user. But what I would like to do is show these different fields to the site Admin. So for example the ...
1
vote
1answer
169 views

Use post object from first query in second query

I have a post ID stored in a variable from my first query and I'd like to use that to highlight the post with the same ID in my second query, but it's not working. First loop: <?php if ...
2
votes
2answers
471 views

Post Ancestor and Child Post in Custom Post Type

Hierarchical structure of custom post type "Book" (for example). When we are on Post 2-95, I want to know: Does the post has this post ancestor(Post 1-31)? Does it have child posts(Post 3-19, ...
0
votes
2answers
75 views

How to customize and keep things up-to-date?

I made a few websites in WP (that was kind of my first serious web-related work where I started learning about more serious and concrete stuff other than homework type of programming exercises) and ...
0
votes
1answer
280 views

Custom Portfolio Page

I've a page (at /portfolio) & nav item created called Portfolio. What I'd like is for this page to either contain all the portfolio category's post in chronologically order or else all of the ...
1
vote
0answers
140 views

Track usernames with piwik

I'm wondering if there is a way to send current logged username to Piwik and display it beside the ip address in the stats. I need to see which users viewed a specific page and which users downloaded ...
1
vote
1answer
218 views

Plugin for users to create their own ads like Google Adsence

Does any one know of a plugin to allow users to create ads on a format like Google Adsense (title, some text and a link). ? Something that may require some customization may do the job. Thanks in ...
0
votes
1answer
482 views

Custom SELECT Query With Multiple Meta Values (Ordering Problem)

I have two custom meta values that I am using for an events list and have almost got everything working perfectly except for the ordering. I have two dates (event_date and event_enddate). One of these ...
0
votes
1answer
107 views

How to Remove the Custom Theme Panel from a Theme?

How does one remove the custom theme admin panel from a theme that has the options to change colours, layouts, etc? Thanks. K
0
votes
1answer
144 views

How do I add a promotional message to my posts?

I'm sure this is a dup, but I honestly can't find an answer. I'd like to add a message to the start and end of my posts: "Check out my new startup: Facebook For Dogs!" Is there a simple way to do ...
2
votes
2answers
216 views

Looking to display non-image files in Gallery with logo specific to file type

When I first began looking into this, File Gallery got me much closer to solving the problem. The only issue is that the plugin only displays the generic non-image icon when I upload a file. Does ...
1
vote
1answer
929 views

the_content() is not displaying content, why? [closed]

I have a custom theme and have built a blog page where I'd like to utilize "the loop", but get_content() is not working. Instead of displaying page content, it displays code from a template. I don't ...
0
votes
1answer
1k views

User Custom Dashboard

I wondering is there any way/plugin to configure the User Dashboard or Panel. I know there already has a plugin called WP User Frontend able to do this, but the plugin so far is not support for custom ...
1
vote
1answer
347 views

How to check user role?

I have functions that have to execute based on the user roles. How do I check the user role so that I can insert the respective function under their role? EG. if ($_GET['role'] == "free member" ) ...
1
vote
1answer
889 views

Multiple Category Search

I'm trying to create a search feature that will allow users to enter a search term and select a couple of categories. The script searches a single category just fine, but when I add more than one I ...
0
votes
2answers
93 views

Adding comments to my custom theme

I would like to add comments to my single.php file. My custom theme is "hand built" and I haven't found the proper code needed to add this functionality. Anyone have the quick and dirty on how to add ...
-2
votes
1answer
38 views

Conditional tag

I am using this code to show custom code on single posts. function post_footer() { if (is_single()) { ?> <div class="custom"> <h1><a href="<?php the_field('live_demo'); ...
0
votes
1answer
117 views

How to implement two separate featured images for each post/page

So I would like to set two separate feature images for each post/page. One would be a rectangle for use in a slider and another would be a square for use on archive pages, search pages, category ...
0
votes
1answer
278 views

Echo the Last Child Taxonomy only (not parents)?

I have a question about how to echo a child taxonomy only. My taxonomy is location. I have a parent location and child locations like so: London (parent) West London (Child) Chelsea ...
3
votes
3answers
1k views

One site, 2 distinct sections: two different top nav menus?

I have a site that is in two distinct halves. I'd like the same template to apply to the whole site (from a look & feel perspective), but for each 'half' of the site to have its own top nav menu. ...
2
votes
2answers
725 views

Add a page that appears in the backend admin that lists files to download? WP 3.3

I am currently using WP 3.3.1. Basically I just want a page for users who login via wp-login.php and see the backend admin panel to be able to see a page that shows a list of files they can download. ...
1
vote
1answer
4k views

How to add checkbox and radio button in Profile Page

I liked to customize my profile page by adding new fields to get more info from the user like "Gender" or "Speaking Languages". I managed to get the text input form to work, the problem I having now ...
4
votes
2answers
478 views

Enable / Add Custom Keyboard Shortcuts To Work With WordPress' HTML Editor

I use Markdown in my posts, and the plugin I use for that purpose requires the Visual editor be disabled. The HTML editor is pretty much just a text box. To make writing easier, I would like to ...
0
votes
1answer
224 views

How to fix vanilla comments extra iframe space

I am using the new vanilla comments on wordpress with my self hosted vanilla forums, but on every page, there is unnecesary iframe space. I was wondering how to fix that. My site is here and my forums ...
2
votes
2answers
3k views

Edit Custom Database Tables in Wordpress

I have a site that uses custom database tables to manage info that is inserted by a process completely independent from Wordpress. The data from the table is used in the Wordpress site but it is not ...
-1
votes
2answers
74 views

HTML in PHP problem [closed]

I have the following code but I always get an error, it's the first time I've tried to merge HTML with PHP: <?php if(get_field('post_image')) { echo '<img src="'. get_field('post_image') ...
0
votes
1answer
73 views

adding custom meta as well as looping through posts

I am grabbing two sets of custom meta and looping through the posts, order goes: custom meta1, posts, custom meta2. but for some reason the second set of custom meta wont show up if I add the posts ...
2
votes
2answers
4k views

How to include own css on wordpress tinymce editor?

I have added some text on tinymce editor on load. (Every time you click on Add new the tinymce editor load with this text.) but problem is how to enable css class which are using in default text. ...
0
votes
2answers
218 views

Custom Taxonomy Sort For a Custom Query

I am trying to custom sort taxonomies on a custom query I have written for one of my website I cannot use any custom plugin as I have tried and they do not work with my current setup. ...
4
votes
3answers
3k views

WordPress plugin to publish to multiple remote WordPress blogs

I have a WordPress (.org) blog (let's call it blog1) that is used by many authors, who may create, edit and publish posts (on blog1). Each author has her/his own WordPress blogs, hosted elsewhere. ...
16
votes
9answers
4k views

How to structure a plugin

This isn't a question about how to build a WordPress plugin. Rather, what, if any, guides could be applied to how to put together the file architecture of any plugin. Some other programming languages ...
2
votes
1answer
446 views

Widget Options Not saving

I am trying to create a custom Recent Posts widget that accepts a category, to show only posts in that category. I'm having trouble saving the widget options. I've done some debugging and found that ...
6
votes
2answers
435 views

What are the ADVANTAGES of ORIGINAL wordpress template structure?

Precondition: coming from a Custom PHP applications(using symfony, zend and so on) world, for me it feels unnatural to have template separated in a way that is done in original wordpress theme. e.g ...
0
votes
1answer
131 views

how to add datas in taxonomy to post with wp_insert_post

how to add datas in taxonomy to post with wp_insert_post this is my code but it is saved in my texonomy draft,why? i have given post_type=publish. $my_post = array( 'post_title' => ...