kuhio61
Forum Replies Created
-
I’ve got a solution for you. I am embedding an Issuu flipbook we just put together and had an issue (ha, not that funny) with that “Open Publication” text below it and no settings to disable it. I just added this after the div embed:
<style>
.issuuembed span {display:none !important;}
</style>Voila!
And, just in case you wanted to see our new flipbook: https://issuu.com/surfing-magazine/docs/auszine-flipbook-eastside_4
Forum: Reviews
In reply to: [WP No Category Base] Broke my pagesHope you can help me quickly. Just installed the same plugin. I am panicked as well. How did you clear the cache to get the site pages to no longer return 404s?
Forum: Fixing WordPress
In reply to: Possible Bug with Tumblr ImporterYep. Nailed it @cam5.
Forum: Fixing WordPress
In reply to: Possible Bug with Tumblr ImporterI am getting the same error and went through the same steps above.
Any ideas?
I got it to display the image, but I am getting the same thumbnail for each post in the loop. How can I differentiate?
Here’s the code I am using to display the thumb:
<?php $my_posts = get_custom_field('select_relative_posts:to_array', 'get_post'); foreach ($my_posts as $p) { ?> <?php echo get_the_post_thumbnail($p, 'home-page-thumb'); ?> <?php } ?>
[Please post code snippets between backticks or use the code button.]
Thanks!
I tried researching this more, looking for the thumbnail information. Could you point me in the right direction? Haven’t a hard time for it to print the thumbnail source.
Thanks!
Wow. You’ve been more than helpful and I appreciate your help.
Firstly, I’m still having issues with this line:
<img src=”<?php print $p[‘thumbnail_src’]; ?>” />
The thumbnail isn’t being printed. It’s just blank.
Secondly, is there another way to format the date?
From this:
2012-01-03 05:35:52to this:
01-03-2012
Thank you.
Yeah, maybe it’s a very one sided way of looking at it… and maybe why I would have so much trouble here. Anyway, I used this code:
<?php
$my_posts = get_custom_field(‘select_relative_posts:to_array’, ‘get_post’);
foreach ($my_posts as $p) {
$p[‘post_title’];
$p[‘guid’]; // this is the permalink
$p[‘my_custom_field’]; // any defined custom field is available
$p[‘thumbnail_src’]; // This is where WP stores the “Featured Image”
}?>
<div class=”module”>
<div class=”thumbnail”>
” rel=”bookmark” title=”<?php the_title_attribute(); ?>”>
<img src=”<?php print $p[‘thumbnail_src’]; ?>” />
</div>
<h3 class=”blog_header”> “><?php print $p[‘post_title’]; ?> </h3>
<p><?php print $p[post_date]; ?></p>
<div class=”entry”>
<p><?php print $p[post_excerpt]; ?></p>
</div>
</div>
<!– blog_module –>And it gave me this:
Post 4
2012-01-03 05:36:12
Excerpt Text. Excerpt Text. Excerpt Text. Excerpt Text. Excerpt Text. Excerpt Text. Excerpt Text. Excerpt Text.
Which is in the right direction. I’m just no familiar how to make the loop display all the posts I attached to it? Also, I wasn’t able to get it to print out the featured image src. Any idea?
I used the repeating code and it was able to print this:
Mayhem Blog 2https://localhost/lost/?post_type=mayhems_blog&p=2428Array ( [ID] => 24 [post_author] => 1 [post_date] => 2012-01-03 01:52:47 [post_date_gmt] => 2012-01-03 01:52:47 [post_content] => [post_title] => Mayhem Blog 2 [post_excerpt] => Excerpts are optional hand-crafted summaries of your c [post_status] => publish [comment_status] => open [ping_status] => open [post_password] => [post_name] => mayhem-blog-2 [to_ping] => [pinged] => [post_modified] => 2012-01-03 02:21:33 [post_modified_gmt] => 2012-01-03 02:21:33 [post_content_filtered] => [post_parent] => 0 [guid] => https://localhost/lost/?post_type=mayhems_blog&p=24 [menu_order] => 0 [post_type] => mayhems_blog [post_mime_type] => [comment_count] => 0 [ancestors] => Array ( ) [filter] => raw [_edit_last] => 1 [_edit_lock] => 1325641454:1 [_thumbnail_id] => 28 ) Post 4https://localhost/lost/?p=3728Array ( [ID] => 37 [post_author] => 1 [post_date] => 2012-01-03 05:36:12 [post_date_gmt] => 2012-01-03 05:36:12 [post_content] => test [post_title] => Post 4 [post_excerpt] => Excerpt Text. Excerpt Text. Excerpt Text. Excerpt Text. Excerpt Text. Excerpt Text. Excerpt Text. Excerpt Text. [post_status] => publish [comment_status] => open [ping_status] => open [post_password] => [post_name] => post-4 [to_ping] => [pinged] => [post_modified] => 2012-01-03 05:36:12 [post_modified_gmt] => 2012-01-03 05:36:12 [post_content_filtered] => [post_parent] => 0 [guid] => https://localhost/lost/?p=37 [menu_order] => 0 [post_type] => post [post_mime_type] => [comment_count] => 1 [ancestors] => Array ( ) [filter] => raw [_edit_last] => 1 [_edit_lock] => 1325568862:1 [_thumbnail_id] => 28 )
How do I apply HTML elements to it so I can format it?
Thanks for getting back to me so quickly. I looked at all the supplied links and I am not really seeing how these apply to me. Right now, the above code prints the post’s id’s. How do I use these ids from the custom fields to query three posts? I am lost here.
Thanks.
Forum: Fixing WordPress
In reply to: query post with custom fieldI’m trying to accomplish a similar task. I want to show a specific category in the sidebar of a page using custom fields to generate the specific category
<?php if ( get_post_meta($post->ID, 'team-category-slug', true) ) { ?> <h3 class="widgettitle"><?php the_title(); ?> / Blog</h3> <?php query_posts('category_name=<?php echo $team-category-slug; ?>&showposts=3'); ?>
However, I still haven’t gotten this to work yet.
Custom Field:
Name: team-category-slug
value: category-slug-nameAny ideas?
Forum: Fixing WordPress
In reply to: Corrupted Image after uploadJust got this message back from our hosting company:
You should be good. It seems the temp directory for php did not have the right permissions so when you uploaded an image, it passed along those permissions. I believe I have fixed this now.
If you are curious, this is the site that lead to the answer
https://www.howyoudo.info/index.php/how-to-fix-windows-server-upload-file-inherit-permissions-error/
Hopefully this helps you!
Forum: Fixing WordPress
In reply to: Corrupted Image after uploadThanks for the reply. Yes, hopefully we can get someone here with some more knowledge. To add to your sidenote, the medium and large versions work fine. Another twist is that when you wrap Timthumb around the full size image, it works.
What file permissions are you manually adding to the full size image?
I put in an ticket request to my server’s support crew. Hopefullly they have the magic answer.
Forum: Fixing WordPress
In reply to: Corrupted Image after uploadI am having this issue right now. I upload images and get the 500 internal server error.
I am using IIS 7.5. This is what’s currently in my web.config file:
<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="wordpress" patternSyntax="Wildcard"> <match url="*"/> <conditions> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/> </conditions> <action type="Rewrite" url="index.php"/> </rule></rules> </rewrite> </system.webServer> </configuration>
Any ideas? Here?
Forum: Fixing WordPress
In reply to: wordpress auto erase my iframe embade codeWe are having issues with this as well. We are running WordPress MU 3.0.1 currently, but had issues before 3.0. Some of our users experience the video iframe embed automatically erased when you click Preview. They’re also erased if you click Save Draft.
I tried changing their roles from Editors to Admin and they still have issues. I am a super admin and I never had any issues. Even from before when we weren’t using MU.
Anybody have any ideas here?