gillespieza
Forum Replies Created
-
Hi Rincewind… appreciate your fast reply. Are you sure about the
link_after
though – the documentation states that it puts the link_after text in before the closing</a>
, and on my site its happening afterwards. I edited the line as you suggested:$pages .= '<ul>' . wp_list_pages(array('link_before' => '', 'link_after' => '', 'sort_column' => $page_sort_column, 'sort_order' => $page_sort_order, 'exclude' => $page_exclude, 'depth' => $page_depth, 'show_date' => $page_show_date, 'title_li' => '', 'echo' => '0')) . '</ul></div>';
but it did not change anything. I deactivated every plugin, but it still happens. It goes away if I choose the default theme though, so it must be something in my theme functions – I will go crawling through it tonight and see if I can find it…
Awesome, thanks so much for your swift response. Was that in the documentation (did I just miss it)?
Hi Scribu
I’m having some issues with reciprocal links and I’m not sure if its a WordPress 3.2 thing or if I’ve done something wrong, or perhaps I’m just not understanding something. I’m using version 0.7 with WordPress 3.2.
In my functions file, I have the following:
function my_connection_types() { if ( !function_exists( 'p2p_register_connection_type' ) ) return; p2p_register_connection_type( array( 'from' => 'film', 'to' => 'film', 'reciprocal' => true ) ); } add_action( 'init', 'my_connection_types', 100 );
In my single-film.php file, I have:
$screenswith = ""; $connected = new WP_Query( array( 'post_type' => 'film', 'connected_to' => get_queried_object_id() ) ); if( $connected->have_posts() ) { $screenswith = '<div class="screenswith arrow_list"><h6>Screens with:</h6>'; $screenswith .= '<ul>'; while( $connected->have_posts() ) : $connected->the_post(); $screenswith .= '<li><a href="'.get_permalink().'" title="'.get_the_title().'" target="_blank">'.get_the_title().'</a></li>'; endwhile; $screenswith .= '</ul>'; $screenswith .= '</div>'; } wp_reset_postdata(); echo $screenswith;
The reciprocal relationship is being created in the admin backend, but on the front end, only one post shows the
$screenswith
data – the other post is “blank”. If I change the request fromconnected_to
toconnected_from
, then they switch – the previously blank post now shows the connected post, and the other is then blank.Perhaps I’ve just missed something in the wiki, but I thought reciprocal would create a from/to relationship in both directions on the front end as well?
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] Add Connection info to custom columnThanks w.r.t
'reciprocal' => true
— I thought I had that enabled a few versions ago, dunno how I managed to remove that bit… That helps a lot, thanks…Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] Add Connection info to custom columnWell, I just want to be able to see in the Manage Posts screen if a post is linked to another post. I imagined it displaying, for example, just the connected post title in a column.
Not all my posts have connections, and the reciprocal connection is not being created, so it would be nice to have a convenient place to see whether I have to go in to a post to manually create the reciprocal connection.
I have used it to backup from a GoDaddy account to Dropbox, but never been able to get the FTP backup to work from GoDaddy.
If it helps, this is the output of the error console in IE:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET CLR 1.1.4322)
Timestamp: Wed, 1 Jun 2011 14:31:14 UTCMessage: Object doesn’t support this property or method
Line: 4821
Char: 5
Code: 0
URI: https://www.encounters.co.za/wp-includes/js/prototype.js?ver=1.6.1Message: Object doesn’t support this property or method
Line: 25
Char: 264
Code: 0
URI: https://www.encounters.co.za/wp-includes/js/jquery/jquery.js?ver=1.4.4Message: Object doesn’t support this property or method
Line: 3
Char: 5
Code: 0
URI: https://www.encounters.co.za/wp-content/plugins/posttabs/postTabs.js?ver=3.1.2Message: Object doesn’t support this property or method
Line: 4621
Char: 7
Code: 0
URI: https://www.encounters.co.za/wp-includes/js/prototype.js?ver=1.6.1Message: ‘style’ is null or not an object
Line: 33
Char: 6
Code: 0
URI: https://www.encounters.co.za/wp-content/plugins/lightbox-2/lightbox.js?ver=1.8Forum: Plugins
In reply to: [WordPress Post Tabs] Works in IE 7 but not IE 8How on earth did I get a duplicate post? I just edited the title? How you do delete posts on this Forum?
Forum: Plugins
In reply to: [postTabs] [Plugin: postTabs] XHTML+1
@razorteeth – I solved it by adding a non-mathematics based quiz to my form. With questions like: “What is the second to last word of this sentence” and “How many colours in the rainbow”, etc
Thanks – I’ll post it as a feature request ??
Thanks for your reply ??
But there doesn’t seem to be any option to mark something as missed spam – these aren’t comments that are being held back for moderation, they are contact form submissions. The Akismet panel only seems to list the stats – no options to mark things as ham or missed spam.
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] Watermark makes all fields requiredI’ve just tested in it IE 8 – works fine in IE 8 and Firefox 3.6.16, but not in Google Chrome 10
Forum: Plugins
In reply to: [Contact Form 7] [Plugin: Contact Form 7] Watermark makes all fields requiredhttps://www.piratewedding.co.za/rsvp
Here is the complete form code:
<div id="rsvp-form"> [text* name akismet:author watermark "Name*"] [email* email akismet:author_email watermark "Email*"] <label class="">[radio radio-599 id:aye-or-nay use_label_element "Aye, we'll be a-plundering with ye" "Aye, we like the cut o' yer jib" "Nay, yer port needs more wenches" "Nay, yer little rowboat aint seaworthy"]</label> [text* number-adults 1/1 watermark "Number of adults"] [text number-children 1/1 watermark "Number of children"] [text number-veggies 1/1 watermark "Number of vegetarians"] [textarea music watermark "Any particular music you'd like?"] [textarea further-message watermark "Any further message?"] <div id="querysubmitbutton">[submit class:button "Send"]</div> </div>
Forum: Fixing WordPress
In reply to: wp_mail() not workingHave you checked that wp_mail() is working if you provide all the arguments is needs?
Try creating a simple template file in your theme folder, like so:
<?php /* Template Name: Test */ get_header(); // $headers = 'From: My Name <[email protected]>' . "\r\n\\"; wp_mail('[email protected]', 'The subject', 'The message', $headers); get_footer(); ?>
Then create a test page using “Test” as the template. Preview the page (you shouldn’t see anything on the page, actually) and then check your email. If you still get nothing, uncomment the line with $headers (just delete the two // at the start of the line). Save the template, reload the test page, and check your mail again. If it now works, the problem is that there is no “from” address being set when wp_mail is being called elsewhere.
On my host, simply creating an email user “[email protected]” fixed the problem.