When building what I call a PostVO object, (which is basically a representation of a post within the database with some extra values added on. Which are categories, post_tags, attachments, featured image and permalink) I’ve come across a slight hurdle with getting a list of the taxonomies the post belongs within. I can access them via get_post_taxonomies which gives me a list of possible taxonomies, but not the particular ones associated with a particular post.
get_post_taxonomies is a start, and I can run a for each loop against what this returns, using wp_get_object_terms to check if the post has that particular taxonomy.
But it seems a little inefficient. I can access each posts taxonomies via a SQL query. Ideally however I try to resist working directly on the database and prefer to use the WordPress API.
So, is there a function I can call that returns the taxonomies of a particular post, without knowing what those taxonomies are in advance?
]]>I’ve achieved this perfectly but then I decided to make the site in flash and see how i could pull off the same thing.
on a regular html page all I have to do is include the wordpress loop:
<div id=”content”>
<?php query_posts(‘cat=-4’);?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class=”post”>
<h1>” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h1>
<div class=”postmeta”><img src=”<?php bloginfo(‘template_directory’); ?>/images/calendar.png” align=”center” alt=”Calendar” /> <?php the_time(‘F j, Y’); ?> | Posted by <?php the_author(); ?> <?php edit_post_link(‘edit’, ”, ‘ ‘); ?></div>
<?php the_content(‘More ?’); ?>
</div>
so there’s thediv and the php code that calls for the blog posts of a specific category.
Is it possible to do this in flash? if so how?
I appreciate any advice thanks for reading.
]]>To have a really near perfect integration i think i would have to use a lot of custom tags to avoid posting image or multimedia stuff directly in the post content.
Thanks !
-lucas
Almost there with the main markup!
The problem I’m having is with IE.
Here’s a code snippet.
<?php if( is_front_page() && !is_paged() ):?>
<object type="application/x-shockwave-flash" data="https://whatwebuild.com/blog/wp-content/themes/gumball1/fullscreenBG.swf" width="100%" height="100%">
<param name="movie" value="https://whatwebuild.com/blog/wp-content/themes/gumball1/fullscreenBG.swf" />
<param name="wmode" value="opaque" />
</object>
<?php endif;?>
Works perfectly in all other browsers but IE.
I’ve set clsid’s, wmode’s etc etc all to no avail.
URL for the test site is:
whatwebuild.com/blog
If anybody has any advice or input I’d be happy to hear it, been working on this for two days and still haven’t cracked it!
]]>I’m working on something I was planning for a long time. I’m creating a full screen Flash theme for WordPress, combined with an easy to use ActionScript library to get the right kind of data out of WordPress. In my quest to find the best way to get data out of WordPress and into Flash, without re-inventing the wheel, I’m now examining the XML-RPC connector.
I’m running through all supported methods in the API list (by calling system.listMethods) to see what I can get from them. They’re also in xmlrpc.php, I’m using WP version 2.8.5.
There are three findings that strike me as odd, and I would very much like an educated opinion on them. I have the feeling I’m on a very wrong path here.
Or maybe I’m looking at the XML-RPC connector for the wrong kind of use all together, barking up the wrong tree so to speak?
Is there a better way to get raw, read-only content out of WordPress to use in a non-browser client like Flash?
I’d be much obliged for a little nudge in the right direction,
Eric-Paul
Thanks, Adam
]]>I’ve developed a .swf file that loads the wordpresses headline via the <? php get_post title, something on the lines of that. That gets tossed through the flash file, all is said and done.
However when trying to specify what post title gets tossed through (e.g. from a category), is where I fall off the bandwagon. Developing front page widgets for my wordpress run websites is alright with just php, but getting just the straight flat text of something (like in this case the headline of an article, or multiple articles from said category) is where I get lost. Any ideas?
An example of what I’m attempting to do is to pass the latest posted article from a specified category through flash so, the only “text” the flash .swf file would see with the wordpress variable would be just the headline. I would then be able to take that text in flash, and play with it, animate it if needed and develop widgets, etc.
This also goes with from a specified category getting the latest posted article’s URL as well, so that the widget can link up to the headline of that article as well.
I completely suck at explaining things, I’m use to be just shoved in a corner and told to code, so if this makes sense to anyone please help
Thanks all, and from a code monkey to another…assistance would be greatly appreciated
~Brian
]]>The page in question is offices.networkyachtbrokers.co.uk. It uses a flash file that’s called in from the www. subdomain of the site. On the www. subdomain there are links which when you click on them, they work, however when from within wordpress (which is hosted on the offices. subdomain), there is no joy.
I have tried the steps spelt out in this page – https://www.ads-software.com/support/topic/190041?replies=8 – but I’m having no joy. Any suggestions?
]]>This is my first post in this forum, and it goes something like this:
I’ve written my first plugin for WordPress. It was actually first started as another project in actionscript, but even since the start I had the idea that it could/should be converted to a WordPress plugin.
The plugin is an application made in actionscript, that lets visitors easily grab webcam images of themself directly on the site, and add them to a comment. It will then show up as a thumbnail next to the comment and will show a bigger image when clicked.
Features:
* Let’s the user attach and remove an image to the comment
* Skinnable GUI (normal .png’s)
Requirements:
* Flash Player
* Javascript
* “Avatars” (“Show Avatars” must be activated from the “Discussion Settings”)
* And of course a webcam
Known bugs:
* Sometimes the page keeps loading and loading, even though everything is already loaded
* Language files (.mo) seem to crash the plugin (shows a white page when sending the comment)
Before actually releasing it, I’d lite to hear your opinions about it, and maybe report any bugs. All (most) kind of feedback is appriciated. You can test it here:
https://www.krankenzine.net/bloggtest/?p=1
In my example I’ve used the Lightbox plugin for the popups, which of course is not included in my own plugin.
]]>