2
votes
3answers
1k views

wordpress inserting posts programatically through a url

I have to insert posts programatically in Wordpress. I want that I should be able to publish posts via a url. Something like ...
3
votes
1answer
81 views

WordPress localization

In WordPress localization files (.po), does php map files by the line number eg. comments.php:60 or msgid msgid "<span class=\"meta-nav\">&larr;</span> Older Comments". So basically, ...
2
votes
2answers
319 views

Single reusable value for post meta: Custom Taxonomy or Post Meta?

Suppose I have a post meta like "Region" it will contain values like "Region 1", "Region 2" etc. But it should only contain ONE value. Also I would like it to have an archive page. If I use custom ...
1
vote
2answers
968 views

How can i remove the paragraph from shortcodes content?

If you have created shortcodes in Wordpress, you may have noticed that when you get the content of your shortcode, it's wrapped in html paragraph tags. I don't know why the progammers did that. It ...
1
vote
1answer
67 views

Is the object cached?

I have a function to instantiate a class to provide var access to other functions. function my_data(){ global $post,$the_data; $postid = get_the_ID(); $the_data = new MY_Class ( $postid ); return ...
1
vote
2answers
507 views

Use different taxonomies in different custom post types' permalinks?

Is there any way to add %post_type% and %taxonomy% to permalinks? I want to have links from one custom post type have one taxonomy's terms in its permalink, and another post type to use another ...
1
vote
1answer
156 views

Navigational drop-down lists in Wordpress?

I'm trying to simplify a set of links by placing them in a drop down list (form style) with a submit button that will take users to the page in question. Ideally, I'd like it to behave like the ...
2
votes
1answer
172 views

Threaded Comments Feature not working

If a reader posts a comment on my blog, I'm able to reply to it. But the reply is not appearing on the post page, even after approving the comment. Number of comments to that specific post is 3, i.e., ...
1
vote
1answer
168 views

Wordpress plugin/code to hide all things related of a user from the public

I am looking for a plugin or a code that will allow admin to hide all things related to a specific user. Not to delete it, just to hide it from the public. Something like to be unable to viewed from ...
3
votes
1answer
188 views

Using wordpress post data as input for google visualisations

I'm trying to use wordpress post data (eg title, link, custom fields) as a data source for google visualisations. I want to be able to take the wordpress data for all posts and visualise using the ...
1
vote
1answer
674 views

ajax in wordpress - path issue

am trying out a bit of ajax ( via jquery ) in wordpresss. ... i have everything working correctly but for some reason i have to have the full url to the php handler file even though it's located in ...
2
votes
1answer
560 views

Duplicate and change a Theme Widget

Is there a way (a common one) to duplicate and change a theme widget ? I'm asking this because, I have this widget that displays the recent news and if we click, it will display ALL news, but I wish ...
1
vote
2answers
574 views

Geo Targeting articles on a WordPress site [closed]

I want to display the articles on my WordPress site depending on the location of the User. I am looking for a country based classification. Is there any already existing plugin that can help me with ...
5
votes
1answer
5k views

How to get taxonomy term of the current page and populate queries in the template

I've been stumbling around trying to figure out how to get a specific taxonomy term of the current page so that I can subsequently populate queries on the page for other post types that share the same ...
1
vote
1answer
109 views

How to find all links between pages

I'm trying to have sort of a functionality that will let me find all internal links on my site that are pointing to a page. i.e - I want to know all pages on my site that are linking to (any) page in ...
1
vote
1answer
42 views

Instead of submiting an entire post, is there any way to submit a lite-post or a simple message?

I was wondering if there is a way or a plugin to post something like twitter update messages instead of a post. Something like http://p2demo.wordpress.com/ but better, where a user will post update ...
3
votes
2answers
4k views

WP_Query and next_posts_link

I cannot figure out how to make next_posts_link() work within my custom WP_Query. Here is the function: function artists() { echo '<div id="artists">'; $args = array( 'post_type' => ...
0
votes
1answer
101 views

How to avoid repeatedly use the new statement to instantiate a class? [closed]

I have a Class with a lot of variables. To get a variable, I have to write this line in each function: $x = new MY_Class(); I guess there has to be another way? I tried: function my_data(){ ...
1
vote
2answers
2k views

How to make get_template_part always check child theme first?

How can I force WP to always check the child theme folder first when running get_template_part? Example: child theme loads get_template_part('content', 'inventory') in single.php. Because all child ...
2
votes
1answer
363 views

how to assign more permission to wordpress author

I have installed jw player plugin so that users of my site could upload their videos. Right now, admin can only see jw player menu on the admin panel and he can only upload videos and use this plugin. ...
5
votes
1answer
97 views

Why is google telling me to upate wordpress

Today I got a bunch of messages for many of my sites in Google Webmaster Tools telling me I dont have the latest version of Wordpress and should update. However I have 3.13 up, I dont see any updates ...
0
votes
1answer
216 views

Error of “Call a member function on non object” while var_dump get correct result

I got error of "Call a member function embed() on a non-object", but I can see the result of var_dump is an object. Please help evaluate the following code: This is the Class to create a picture: ...
1
vote
2answers
553 views

WordPress Stats keeps showing non-existent post as a top post?

For some reason, one of my top posts as reported by WordPress Stats is actually non-existent... What I see is: #2147483647 (loading title) and it links to "...?p=2147483647" which returns a ...
-1
votes
1answer
142 views

Will my Wordpress site become vulnerable after adding this functions which allows more HTML tags for subscribers?

I was thinking of adding the following lines of code to my functions.php file: /** * Change the default list of allowed html tags */ add_action('init', 'edittag', 10); function edittag() { ...
0
votes
1answer
49 views

Displaying Posts of a Custom Type

I currently have a new custom post type-- "Books." I have a custom rewrite url that I set when registering my post type: 'rewrite' => array( 'slug' => 'books', 'with_front' => false ) It ...
0
votes
2answers
186 views

Is there a straight-forward way to iterate over all shortcodes in a post?

I'm working with a shortcode [translate lang=eng]Apple[/translate] which will be shown only if the "current language" is eng. If the post contains, in addition to the above, the declaration [translate ...
1
vote
0answers
982 views

Multiple columns in add/edit post/page? [closed]

If you go to the WP main Dashboard page, the screen options allow you to have 1-4 columns for the screen layout. When you get to the Add/Edit Post/Page pages (/wp-admin/post-new.php and ...
0
votes
1answer
127 views

Issue with contextual help overwriting existing content

I'm missing something here: function page_help($contextual_help, $screen_id, $screen) { if ($screen_id == 'page') { $contextual_help = ' <h5>Shortcodes</h5> ...
3
votes
1answer
745 views

Manipulating Media uploader

Ok. Going to try and explain this as best as I can, so bare with me. Anyway, I'm trying to include the default media uploader as a part of my plugin. Currently, I've successfully managed to use the ...
0
votes
1answer
165 views

Plugin to restrict login and unpublish content from an author

I am looking for a plugin or a code that will allow admin to select an author and "ban" him from logging in the system and also to unpublish his posted content until the admin decide to allow the ...
2
votes
1answer
314 views

Make individual attachments private?

Is there any way to make individual attachments private similar to how a post can be made private? I've looked through various plugins but none really seem to do the job. They usually make all ...
1
vote
3answers
246 views

display order of connections

Is there a way to control the order in which connections are displayed ? I've got a Articles => Books connection so that in each article I can quote a number of books. I want to display the quoted ...
1
vote
1answer
507 views

Help with wordpress custom query and advanced custom fields plugin

first of all sorry for my bad english. Let me explain what I`m trying to do: I have a column inside a SQL table with a string using the following format: yy-mm-dd The thing is, it doesn`t use a ...
0
votes
1answer
755 views

Filter all queries with a specific taxonomy

Is there any way to filter all post queries and add a specific taxonomy? Case in point, I have a taxonomy object of "Region" with terms like "Global", "Americas", "Europe", etc. (Users designate ...
0
votes
1answer
973 views

Filter my home page posts by category or by tag

Would like to filter my home page posts by category OR by tag. i.e. only posts that are in category "X" or have tag "B" appear on the home page. Have used code below successfully to filter ...
0
votes
1answer
212 views

Is there a way to hide WordPress behind a web visible directory?

Is there a way to hide WordPress behind a web visible directory for extra security using a symlink?
0
votes
2answers
131 views

Mechanism to send to users of secured WordPress install new notifications by SMS or email?

I have a family website, private, requires a WordPress account, in WordPress. Some of my family members would like to get the option for notifications of new posts by email or text message. Email ...
5
votes
3answers
691 views

Splitting WordPress theme CSS into multiple files, good or bad?

I'm developing a WordPress theme framework. I want organize CSS for each section into separate files for the following reasons. Developers can easily deregister styles by parent theme and load their ...
1
vote
0answers
132 views

[Plugin: DukaPress] Modifying template output [closed]

I'm building a catalog of publications for a Research Center with DukaPress plugin. http://cea3.iscte.pt/publicacoes/occasional-paper-series/ Some publications are available for order, others are ...
-1
votes
2answers
343 views

wrap text around custom fields array

I'm using this code here to grab all my custom fields from a post for use in an gallery array. http://www.kevinleary.net/get-all-custom-fields-attached-post-page-post-type/ function: // Get all ...
2
votes
2answers
1k views

Post visibility on the basis of roles

How to make a post visible to only: The post author, irrespective of its user role. All users from a specific user role. Other then these, no one should be able to see the post. How should I ...
1
vote
1answer
333 views

Populating a page with content from post custom fields

I'm doing up a blog at the moment where each post is accompanied by the name of a song. Adding the songs to the posts is fairly easily done via custom fields. However, I also need to have a page ...
1
vote
2answers
303 views

[Plugin: Posts 2 Posts] reciprocal connections

I'm using Posts 2 Posts plugin. I've got 2 custom types : movies and actors. I created a movie => actor connection so that for each movie I can see which actors play in. But as far as I understand, ...
6
votes
1answer
1k views

Make a really simple gallery structure

The default gallery structure of WordPress is really tortuous: <div id="gallery-1" class="gallery..."> <dl class="gallery-item"> <dt class="gallery-icon"> ...
1
vote
1answer
293 views

Server crashed trying to restore wordpress multisite, images are not found pls help

I had an issue with a server that was serious enough to have to take it completely offline and then rebuild the os. I have gotten to the point where the new server is up and running. I have managed ...
2
votes
1answer
907 views

Too much recursion error when chosing image from image library for two different meta boxes in one post

There must be a solution for this. I am using this solution for chooosing images from media library. http://www.webmaster-source.com/2010/01/08/using-the-wordpress-uploader-in-your-plugin-or-theme/ ...
1
vote
1answer
131 views

Seperate WordPress catagories into sepeat list on seperate pages

Having issues showing my post in separate list based on category I have a static home page set my page: "home" and I have the blog set to my page: "Inspiration" I have 2 main categories ...
1
vote
2answers
2k views

plugin_action_links Filter Hook Deprecated?

http://adambrown.info/p/wp_hooks/hook/plugin_action_links_%7B$plugin_file%7D Says the hook is deprecated. However, the {$prefix}plugin_action_hook_{$plugin_file} is not. I poked around the ...
2
votes
2answers
141 views

what's meaning of it when submit a theme?

REQUIRED: Comments are displayed as "Off" while they aren't in wp-admin. Comment form is not displayed in these cases, while it is when a unit test post already has comments. i have installed the ...
2
votes
1answer
184 views

Is email post notify visitor on new media upload possible?

Is there a plugin or snippet that would: Add an email input form to each post Send a predefined message when new media (or attachments) has been uploaded for that post only The requested ...

15 30 50 per page