Modifications to theme and plugin files to create new functionality.

learn more… | top users | synonyms (9)

0
votes
1answer
72 views

Custom meta boxes not saving

I am trying to create a custom meta box with 12 fields. there are 3 groups of 4 fields so i am using a for loop to create them to save on typing etc. for some reason i can't seem to get them to save. ...
0
votes
1answer
19 views

Custom section (e.g. Demos or Downloads)

On my website, I want to display a page where I will store all my demos, which should function just like a blog (so I can add new records, edit them and specify custom meta data and list all of them ...
0
votes
1answer
98 views

Can't change theme name

I am developing a theme and it currently has no theme information. Right now it is pulling it's name from the theme folders name and the "Author"is anonymous. I tried changing it by adding code into ...
0
votes
2answers
366 views

Assigning the same custom meta box to multiple post types

I currently have videos set up as a custom post type and I have also created a custom meta box for it that allows users to enter the ID of either a youtube/vimeo video - the video is then displayed on ...
0
votes
1answer
203 views

Widget title markup in register_sidebar

How come the markup I specify in the 'before_title' and 'after_title' settings of register_sidebar gets applied to the default text WordPress widget but not one of our custom widgets, when both are in ...
0
votes
2answers
139 views

How to hide widget from certain category

I need some way to hide theme built in widget from one category.So when the post is from category X on that post hide that widget. I would use plugin for it, but since it's not drag and drop widget I ...
0
votes
1answer
109 views

change top banner content on specific page

I have a static top banner on my website build like this : <div class="row-fluid top-banner"> <div class="container"> <div class="banner-overlay"></div> ...
0
votes
2answers
73 views

adding custom classes for tables

I have to implement a default class for HTML-Tables at WordPress. The wp-standard is <table> .. ist there any way to do this, that i get this output per default? <table class="abc xyz"> ...
0
votes
2answers
90 views

Print shortcode in custom action hook not where the shortcode is entered

I have added a custom action hook into my theme. I want to be able to enter a shortcode anywhere in the_content() and have the shortcode print were the custom action hook is rather then the point from ...
0
votes
1answer
74 views

Is “get_template_part” hierarchy possible?

I'm build a custom Wordpress theme using get_template_part to call tiny bits of code. I have file called "masthead.php" that is called using this code: <?php get_template_part( 'masthead' ); ...
0
votes
2answers
307 views

custom query for both category and pages using global $wpdb;

I have a custom query returning categories, but I also need to return some pages with a particular post ids. How would I add those? They obviously have no taxonomy and are page post types. Below is ...
0
votes
1answer
158 views

Simple Custom Metabox Not Saving

I'm not quite sure why but I've been playing around with all kinds of different solutions but none seem to work. I've traded update_post_meta with add_post_meta and even broke it up into 3 ...
0
votes
2answers
293 views

Remove/Hide a Widget on a Custom Template

i want to make a custom template using Genesis.. I added a custom Menu just by adding a widget on WIDGETS section and placed it on the top right side of the page. But i want it to be removed in a ...
0
votes
2answers
157 views

Taxonomy Overview Page?

I'm looking for a way to create an overview page for taxonomies. So say you're on a page for a certain page (domain.com/my_tax/myterm) it would show different content types in the 'myterm' category. ...
0
votes
1answer
1k views

Remove Categories / Tags From Admin Menu

I want to remove / hide Categories / Tags submenu under Posts in the Admin Menu. I know this works with themes submenus: remove_submenu_page('themes.php', 'widgets.php'); but the same doesn't seem ...
0
votes
1answer
92 views

display unique post per category

On home page i need to display few post from different categories and here are some of the issues i have Any posts can belongs to any number of categories. this is how i am planning to do it ...
0
votes
1answer
45 views

Get a term each custom post type

I have a problem to get the term of custom posts list. I have 2 taxonomies on my custom post type. one of them is "visa_processing". and I am trying to create a list (table, tr, td) "Name1, Name2, ...
0
votes
1answer
61 views

How to remove/replace current page template?

I am writing a plug-in that creates new front/home page from scratch. Below code works nice and it outputs the text before the themes outputs anything. So the question is how can I remove the theme ...
0
votes
1answer
28 views

How to add Wordpress JS Script Links

Hi I do have a code here from my HTML. I just dont know/forgot on how to link scripts in wordpress... <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> ...
0
votes
1answer
622 views

How to create custom home page via plugin?

I want to code a plug-in that creates new custom home page. Note that I have never coded any plug-in before. 1) After activation of plug-in user needs to go to the options of the plug-in and set up ...
0
votes
1answer
94 views

Infinite-Scroll Plugin and Jetpack Infinite Scroll Plugin - Adding to “Thoughts” Theme

How do I enable infinite scroll (either with the infinite-scroll plugin OR the built in infinite scroll jetpack) on the "Thoughts" Wordpress theme? I'm a total noob at editing this stuff so if you ...
0
votes
1answer
39 views

I would like to feature a tip on the homepage

I'm sorry if this question is explained somewhere, I couldn't find it. But it's also difficult to express this special thing in a second language.. I have a very simple homepage, and on that homepage ...
0
votes
2answers
446 views

how can I change the background color of all posts on my server?

The default for the theme I'm using is to have a white background for any post (the part with the text, not the background that forms the border around it) on my wordpress installation. Is there a way ...
0
votes
1answer
34 views

Change default post style to columns

I'm trying to format each post that the user uploads. I need the paragraphs to be floated to the left in the first column, and the images to be in a floated left in the second column. (I've tried ...
0
votes
2answers
58 views

How to add page content into another page

I'll try to explain myself and what I'm trying to gain. I run a DJ business and am trying to get into the Wedding market. One way is to make sure the slug of each page has "wedding-(venue name).html ...
0
votes
2answers
226 views

Post titles and thumbnails as links to custom post types?

I am struggling with the php structure. How do I need to rewrite the code to get the links to the titles and thumbnails of the custom posts? <ul class="thumbnails"> <?php $pfportfolio = ...
0
votes
2answers
155 views

Showing Meta Box via Jquery Checkbox

Ive been fooling around with both Jquery and PHP and Im trying to setup a website for a sports team. I've created a custom post type called "Matches" and in there I've created two Custom Meta Boxes. ...
0
votes
1answer
349 views

Admin only menu/page

Is it possible to show a menu item If only admin is logged in) For any other user the menu item does not appear. For example: if there are a few pages that have shortcodes or other functionality ...
0
votes
1answer
60 views

Featured Images for Tags?

Is it possible to somehow create featured images for tags or custom taxonomies. For the sake of explanation, I will give an example of the possible functionality. Say I am running a website that ...
0
votes
1answer
81 views

Add Class After 4th Post

I need to add a "div" after the 4th post. I am showing 8 posts on the page and the code i am using above shows the div after the 4th and 8th... o just need the 4th to show not every 4th, just after ...
0
votes
1answer
118 views

add_action does not work when instance multiple tab-containers via template-file

I wrote my first class in functions.php which I want to use to create multiple tabs with a simple call all over my template files. When I create a new instance directly in functions.php everything is ...
0
votes
1answer
66 views

Custom Post Type, post-formats associated to custom post type > 404 archives

I'm finishing a custom layout. Here's the code of my Custom Post Type <?php /* ------------------ [ CUSTOM POST TYPE ] ------------------------- */ add_action( 'init', 'create_post_type' ); ...
0
votes
2answers
100 views

$wpdb is queried but results don't show

I am trying to show a list of custom post types on a page template. When I view the page, instead of seeing the different posts, I see the actual page repeated. For example, If I have 5 posts, the ...
0
votes
3answers
156 views

custom user meta query

I've been trying to get this query to work but it keeps failing to return any rows SELECT a.ID FROM wp_users a, wp_usermeta b WHERE b.user_id=a.ID AND ( (b.meta_key='firstname-groom' AND ...
0
votes
1answer
56 views

How can I manage my multiple wordpress websites from main website?

Can this solution be used for multiple WP installations on the same site? For example, I have multiple blogs (multiple subdirectories), i.e. mysite.com/blog1, mysite.com/blog2, mysite.com/blog3, etc. ...
0
votes
2answers
62 views

cannot achieve this structure (custom posts VS categories VS ??)

I'm a bit despaired because I cannot figure out how to do what I need (and I worked with WP since a lot of time ..) Basically, I need to show my artistic work. Each work is a post, or a page or a ...
0
votes
1answer
84 views

Want to modify a Plugin - Tweetily - Can I make it tweet a Custom Field instead of Post Title?

http://wordpress.org/extend/plugins/tweetily-tweet-wordpress-posts-automatically/ I was wondering if somehow it's possible to make it tweet a Custom Field instead of Post Title? in top-core.php, at ...
0
votes
1answer
121 views

Problem with Custom Post Type Categories

Before I proceed on writing anything just have a look the following images. (snapshots) I have one custom post type by name 'questions' just like we have 'posts/pages'. If you look at the image ...
0
votes
1answer
497 views

List post only under the category, exclude child category content

I wanted to list posts which are directly under a category and not inside the "sub category". In other words, I want to hide all the posts which are from "Sub Category" in the Parent category view. ...
0
votes
1answer
108 views

Custom Form not generating URL

CReating a template to load content in an iframe on the same page - I have not even got as far as using ajax to avoid reloading the whole page as the form submit is not working. The submit button ...
0
votes
2answers
128 views

How to get all custom fields with some prefix in key?

I have near 100 custom fields for each post with prefix "wps_" (examle, wps_imagine, wps_video, etc) and near 20 custom fields without prefix. Problem that I don't know names of custom fields with ...
0
votes
1answer
69 views

Display movies that apear this day next

This code retrive me the movies that are comming in cinema, i want to be able to list movies that apear this day, next day ... 7 day week Ex: Today is 13.05.2013, i want to list the movies that ...
0
votes
1answer
391 views

Delete data from custom table when deleting a post

I want to delete post id form my custom table, when deleting a post. I have tried this way, nothing happened. Please help. add_action('delete_post', 'delete_data'); function delete_data($post_id) { ...
0
votes
1answer
140 views

Custom RSS feed - blank page

I've read all the articles about creating a custom RSS feed, but haven't had any luck - always results in a blank page. To make things simple, here is the code I'm using - with the link being ...
0
votes
2answers
555 views

How to display only one category in a custom post type?

I have a custom post type called 'portcat' and I want to display the results of only one portcat category ('games' - which has an ID of '3') on my page. The below code displays all of the categories ...
0
votes
1answer
191 views

Custom <blockquote> HTML markup

In Wordpress, I would like to add a custom styling to the <blockquote> elements, replacing Wordpress' default usage by using a function (or however is easiest). When using the WYSIWYG editor, ...
0
votes
2answers
56 views

Best way to achieve multiple links in a post title

Usually I would get a post title no problem, however now I need to achieve something like this: The Example is written for this title As you can see two words are links in the title, another ...
0
votes
1answer
131 views

Adding a custom post type meta field to rss

So I added my videos custom post type to my rss feed via this code. //Add videos custom post type function myfeed_request($qv) { if (isset($qv['feed']) && !isset($qv['post_type'])) ...
0
votes
1answer
363 views

Post visibility option to theme front-end for author to select?

Is it possible to present author with an option to select visibility of a post (public, private, password) on theme front-end post adding without messing with Wordpress core? Any suggestions are ...
0
votes
1answer
57 views

Customizing admin look and feel for just one particular type of user

Is it possible to change the admin look and feel for just one particular type of user or a group of users. This is not a major requirement for what I am doing at present but a nice to have feature. ...