Forum Replies Created

Viewing 15 replies - 466 through 480 (of 1,041 total)
  • So in short – I need to be able to show scheduled posts when accessed directly by the URL.

    Not necessarily… After hearing the whole situation, I think that it would be easier to modify the query that displays the posts in your sidebar. If you were to code the sidebar to query events from the calender plugin rather than directly from the posts table, you would not have to set the posts to future at all.

    @lbsources
    Sorry, I completely read your post wrong… I feel like an ass 🙂 one thing I can’t figure out is what you are trying to accomplish by setting the post to future? If you could explain, I might be able to help.

    Sorry for sticking my nose into this, but I’ve been following this topic in the forum’s email list as well here (as of today) and I have a few things to say.

    @figaro – While I can certainly understand your frustration with having your links removed, I must say that I feel that your video links should be considered spam and MichaelH is not in error for removing them.

    These are not purely video links – Each links to your blog where you have advertising as well as offer Premium WordPress Support for rates well beyond that of the old I’ll buy you a beer amount. Basically, I see this as an attempt to rope in new clients. I noticed that you host your videos on YouTube. Have you attempted to post a link to your video on YouTube? If the answer is “no” I would seriously look into your true motivations for posting here.

    If you find your motivations are purely to help people, I would suggest that you contact wordpress.tv and request that your videos be added there. They seem to be welcoming:

    To recommend a WordPress-related video, request a tutorial or give us some feedback, please use the form below. When you click submit, your message will be sent to us, yay!

    If they post your video, then you can link to it all you want without fear of moderation.

    I just looked through a few of the threads that you answered and it looks like 15 out of the 30 posts on your user page have moderated links that were most likely backlinks to your website. That’s 50%.

    Well, looks like we’re going to continue to have a problem. Glad to see you are following your own policy:
    http://ww.wp.xz.cn/support/topic/315495?replies=6

    I checked out this thread to see what was going on, and following the link in question is miles away from following one of your tutorial links. First of all, there is no paid advertising. Second, There are no paid services offered. Third there are no links at all. This is purely a resource the seeks to provide information with no strings attached what-so-ever. I see no similarities in this comparison.

    Well, those are my thoughts on this,
    Best wishes to all involved,
    -Mike

    Forum: Plugins
    In reply to: Category page

    This should be what you are looking for:
    http://ww.wp.xz.cn/support/topic/250337?replies=4

    I don’t know, it’s all being queued right, so the ‘list’ is already in there, it’s just a matter of when each part will fire. I guess I was picturing a thin layer where you could intercept everything in the list and rearrange it or remove it.

    Actually, your right and it’s much easier then I originally thought to access all of this. To find the “list”, I ran this code in header.php of the default theme with a few minimal plugins installed:

    global $wp_filter;
    print '<pre>' . print_r( $wp_filter, true ) . '</pre>';

    Although you can easily create a function that will loop over this array and add or remove filters if certain conditions exist, you will never successfully avoid the risk of the plugin author changing their code in a new release that will circumvent your logic.

    there’s a lot of resources out there to learn from already. Books, blogs, big wooden sticks that you can hit people with.

    Agreed, it’s getting better all the time, but specific tasks are sometimes hard to come by… I struggled for a while with being able to figure out how to en queue scripts or styles only when necessary and only was able to nail last week… problem is there were no available resources that focused on this and no one in the forums seemed to know… which led me to believe that it was either really hard or not possible.

    This is why I believe that direct education is the best way to deal with this sort of problem. If the plugin’s broke, fix it and email the author. More times than not, your code will get included + you will probably spend the same amount of time making the changes as you would hacking around them. In the event that the plugin author is unresponsive, there is always the option of releasing the changes yourself – provided it is licensed properly.

    Best of luck to you!
    Would love to hear what path you take with this,
    -Mike

    The easiest solution would be to use a custom field to store the external link and then modify you theme to recognize the field. You will need to add the following code to index.php and, if present, category.php and archive.php.

    <?php
    	$id = intval( $post->ID );
    	$external_link = get_post_meta( $id, 'external_link', true );
    	$href = ( $external_link ) ? $external_link : get_permalink( $id );
    	print '<h2 id="post-' . $id . '"><a href="' . $href . '" rel="bookmark">' . the_title( '','', false ) . '</a></h2>';
    	comments_popup_link( 'Add a Comment', '1 Comment', '% Comments' );
    ?>

    No problem – have had this happen one too many times myself 🙂

    You’ll most definitely want to use a plugin for this functionality. I know that it’s tempting to try the old “Post it in the future and make it display live trick” but this is actually going against the grain of what the “Scheduled Posts” functionality is meant to accomplish.

    I post on a blog from time to time that uses the Events Calendar Plugin which seems to work pretty well. I have also seen a few other plugins that provide this functionality. It might be best to look them all over and pick the one best suited for your needs. This query will help.

    Best of luck,
    -Mike

    It’s possible that the plugin is inside too many folders. you might have:

    /wp-content/plugins/my-plugin/my-plugin/my-plugin.php

    instead of:

    /wp-content/plugins/my-plugin/my-plugin.php

    This is an annoying thing that happens sometimes depending on how the plugin file was zipped and then extracted.

    I use something like this:

    function generate_page_title() {
    	$o = '';
    	global $cat, $post, $wp_locale, $wp;
    	$error_message = 'Sorry, we could not find what you are looking for.';
    	if( is_singular() ) {
    		$o = $post->post_title;
    	}
    	elseif( is_category() )	{
    		$o = single_cat_title( '', false );
    	}
    	elseif( is_tag() ) {
    		$tag_name = single_cat_title( '', false );
    		$o = ( $tag_name ) ? 'Entries Tagged: "' . $tag_name . '"' : $error_message;
    	}
    	elseif( is_search() ) {
    		$o = 'Search Results';
    	}
    	elseif( is_author() ) {
    		$this_author = ( isset( $_GET['author_name'] ) ) ? get_userdatabylogin( $_GET['author_name'] ) : $curauth = get_userdata( intval( $author ) );
    		if( $this_author )
    			$o = 'Entries posted by: ' . $this_author->display_name;
    		else
    			$o = 'Author Archives';
    	}
    	elseif( is_day() ) {
    		$d = ( isset( $wp->query_vars['day'] ) ) ? $wp->query_vars['day'] : substr( $_GET['m'], 4, 2 );
    		$m = ( isset( $wp->query_vars['monthnum'] ) ) ? $wp->query_vars['monthnum'] : substr( $_GET['m'], -1, 2 );
    		$y = ( isset( $wp->query_vars['year'] ) ) ? $wp->query_vars['year'] : substr( $_GET['m'], 0, 4 );
    		$t = mktime( 0, 0, 0, $m, $d, $y );
    		$o = 'Entries posted on ' . date( 'l F jS, Y', $t );
    	}
    	elseif( is_month() ) {
    		$y = ( isset( $wp->query_vars['y'] ) ) ? $wp->query_vars['y'] : substr( $_GET['m'], 0, 4 );
    		$m = ( isset( $wp->query_vars['monthnum'] ) ) ? $wp->query_vars['monthnum'] : substr( $_GET['m'], -1, 2 );
    		$o = 'Entries posted in ' . $wp_locale->get_month( $m ) . ', ' . intval( $y );
    	}
    	elseif( is_year() ) {
    		$y = ( isset( $wp->query_vars['year'] ) ) ? $wp->query_vars['year'] : $_GET['m'];
    		$o = 'Entries posted in ' . intval( $y );
    	}
    
    	return $o;
    }

    If you paste this function in your theme’s functions.php file, you can then call <?php print generate_page_title(); ?> Where ever you want your page title to be. This function should be used outside the loop.

    Great point that you bring up here. I’ve been coding a few rather large WordPress extensions in the past month with the goal of making them as ‘smart’ and responsible as I possibly can. This is not as easy as I would have hoped it to be, but I’ve managed to work my way through the tough parts and am pretty happy with the solutions that I have been able to produce.

    This being said, I believe that it is the sole responsibility of the plugin author to produce code that functions responsibly by cutting down on database calls and unnecessary http requests.

    I think that the system that you are proposing may be too broad in scope to successfully deploy. This is just my opinion based off of a semi-educated guess, but I believe that you said it best:

    …it can be frustrating at best trying to incorporate something into your site that can and will remove all these unnecessary calls on pages that don’t require them, and doing it in such a way as to not have the site break next time the plugin is upgraded and some of the codebase changes.

    I think that it would be just as frustrating to build such functionality into the core without changing the plugins api drastically.

    The solution that I would set forward would be to educate plugin authors on best practices by siting specific examples. This is the only way that I learn.

    Another, more direct, method would be to actually fix the plugin and email the code back to the plugin author with a request to add the changes in their next public release. I’ve found this to be a great way to get what you need while contributing to the community and giving props to the plugin author. I know that it has really made my day when people write me about updates they would like to see in my code and I am almost always happy to add their changes.

    Just my thoughts…

    Your theme most likely does not support this functionality. You can add the following code to the bottom of the loop in you theme’s single.php file.

    wp_link_pages('before=<div id="page-links">&after=</div>');

    Have you tried:
    next_posts_link( __( 'Link Text' ) );

    Actually, it is an editor that user uploads an Image and when the user selects it, the code is automatically added in.

    Something can definitely be done about it. Can really tell you what without understanding the situation more.

    1. Does a plugin that automatically adds the code?
    2. Where is the image html generated?
    – “on the fly” in the theme’s homepage?
    – Via wp-admin and then inserted into the post as html?

Viewing 15 replies - 466 through 480 (of 1,041 total)