flaviowd
Forum Replies Created
-
Hello everyone …
Just made a test and found a solution 😉
Here we go:On your web (that is not running wordpress), do this:
Include some JavaScript on head tag:[Code moderated as per the Forum Rules. Please use the pastebin]
And now some PHP includes:<?php include('WP_PATH/wp-load.php'); global $wpdb; include_once('WP_PATH/wp-content/plugins/alo-easymail/alo-easymail-widget.php'); ?>
And where you want to display the newsletter form registration:
<?php the_widget('ALO_Easymail_Widget'); ?>
Now should be working fine, and you have now to make some tests and apply some css code for ajax messages 😉
Hope this help someone 😉
Forum: Hacks
In reply to: How to retrive mime type for the current get attachmentHello everybody,
I looked into media.php file at line 911, and I got success using this:
<li> Download File: <?php $args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID ); $attachments = get_posts($args); if ($attachments) { foreach ( $attachments as $attachment ) { the_attachment_link( $attachment->ID , false ); } } ?> </li> <li>File Type: <?php echo $attachment->post_mime_type; ?></li>
I don´t know if this is the best solution, but anyway, this is working.
Tks a lot
Forum: Plugins
In reply to: [Plugin: Register Plus] username field is blankUnchecked “Prevent fake email address registrations.”
Usernames started showing up.
http://wordpress.org/support/topic/plugin-register-plus-error-the-username-field-is-empty?replies=9
Forum: Fixing WordPress
In reply to: How to find Native WordPress Gallery IDVoodoo
I asked here because I´m using WordPress.Org self hosted, and I want to call/show an specific gallery on some sidebars …Forum: Plugins
In reply to: [JSON API] [Plugin: JSON API] Custom Content TypesHi Dan and MegaMarkHarris.
I really want to know how to expose data in json format for custom post types.
I´m working on my final project at my college and I´m using custom post types to create a specific type of content.
My project is to use WP as tool to manage Thesis and Dissertations, so Custom Posts will be realy helpful to struct data for this kind of content, like Author, Title, Abstract, keywords, etc.
I´m researching about dublin core (http://dublincore.org/)Tks and Congratulations.
Flávio Araújo
BrazilForum: Plugins
In reply to: Plugin Easy Post Types-How to get Categories and Tags out of the WP LoopHello everubody
On WP Discussion List here in Brazil I just found the solution:
<?php wp_list_categories('taxonomy=YOUR_TAXONOMY_NAME&hide_empty=0&title_li=') ?>
This works inside and outside wordpress loop perfectly.
So, I´m closing this ticket.
Thanks,
Flávio
Forum: Plugins
In reply to: [WP Easy Post Types] [Plugin: WP Easy Post Types] Notes to DeveloperHello everybody
I´m from Brazil, and I have a sugest.
A friend is using custom post type coding manually, not using plugins.
So she was trying to list categories out of the wordpress loop as we usualy list categories like <?php wp_list_categories( $args ); ?>
But, she just can do it, inside the wordpress loop.
So, researching about that, she discovered something very important:
She creted a php file like app_functions.php and inside this file she coded all php code that is necessary to create a particular custom post type.
And on functions.php she coded:
if( is_admin()) require(“app_functions.php”);
She used this IF to avoid extra and unnecessary processing.
So, she just can see categories and tags related to her custom post types on admin interface, and when she try to list a custom categories (like this <?php wp_list_categories( $args ); ?> ) from that custom post on template theme, that does not work, because is not is_admin
So, I think your plugin have the same issue, because I cant list categories out of the loop, because this should be a global variable and not local.
I think that this forum post can help you to understand the situation http://wordpress.org/support/topic/wordpress-doesnt-recognize-my-custom-taxonomy
Oh my localhost test, I´m using the codes below to retrieve the custom tags and custom categories, but this work just inside the loop:
<?php the_meta(); //retrieve custom fields?> </ul> <p><?php echo get_the_term_list($post->ID, 'my_custom_tags', 'My Custom Tags: ', ', ', '' ); //retrieve the custom tags?></p> <p><?php the_terms($post->ID, 'my_custom_categories', 'My custom Categories: ', ' | '); //retrieve the Categories?></p>
So, I don´t know what modifications (if is necessary) to do on your plugin to list categories and tags out of the wordpress loop.
Thanks in advance.
Flávio Araújo
São José dos Campos, SP, Brazil
http://flaviowd.wordpress.com
Tweets by flaviowd