adampenly
Forum Replies Created
-
Thanks, I’ll play around with the priority. The theme is custom, and built in the most minimal way possible. Yes, “Link back to source” is checked.
Thanks, I included the following in my functions.php but it doesn’t seem to be doing anything different. Is there a suggested priority?
add_filter( 'wprss_ftp_post_content_filter_priority', 'my_wprss_ftp_priority' ); function my_wprss_ftp_priority( $priority ) { return 20; // Ten thousand is the default }
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Here’s my WP / Server info:
### Begin System Info ### ## Please include this information when posting support requests ## Multi-site: No SITE_URL: https://riskmattersllc.com HOME_URL: https://riskmattersllc.com Plugin Version: 4.1.3 WordPress Version: 3.9 Platform: Apple Browser Name: Firefox Browser Version: 28.0 User Agent String: Mozilla/5.0 (Macintosh; Intel Ma c OS X 10.9; rv:28.0) Gecko/2010 0101 Firefox/28.0 PHP Version: 5.3.27 MySQL Version: 5.1.67-rel14.3 Web Server Info: Apache/2.2.22 PHP Safe Mode: No PHP Memory Limit: 256M PHP Post Max Size: 8M PHP Time Limit: 120 WP_DEBUG: Disabled WP Table Prefix: Length: 3 Status: Acceptable Show On Front: posts Page On Front: #0 Page For Posts: #0 Session: Disabled Session Name: PHPSESSID Cookie Path: / Save Path: /home/188392/data/tmp Use Cookies: On Use Only Cookies: On UPLOAD_MAX_FILESIZE: 2MB POST_MAX_SIZE: 8MB WordPress Memory Limit: 40MB DISPLAY ERRORS: On (1) FSOCKOPEN: Your server supports fsockopen. ACTIVE PLUGINS: Advanced Custom Fields: 4.3.8 Advanced Custom Fields: Repeater Field: 1.1.1 Contact Form 7: 3.8 Search & Replace: 2.6.5 WordPress Importer: 0.6.1 WP Crontrol: 1.2.3 WP RSS Aggregator: 4.1.3 WP RSS Aggregator - Feed to Post: 2.8.2 WP RSS Aggregator - Keyword Filtering: 1.4 DEACTIVATED PLUGINS: CURRENT THEME: The HTML5 Boilerplate: 1.0 ### End System Info ###
[Moderator Note: Please post log files between backticks or use the code button.]
I had this problem and had to do a couple things to fix it.
1. Removed .htaccess basic authentication. My site was on a password protected staging server with basic auth, and that seemed to be causing issues.
2. Install WP Crontrol plugin and cleared out stuck cron processes for RSS Aggregator.
As soon as I did these steps my feeds started importing.
Forum: Plugins
In reply to: [My Post Order] single post page prev/next post issueThis should do it:
functions.php
function previous_post_link_sorted($section_name, $current_post, $format, $link) { query_posts(array( 'section_name' => $section_name, 'posts_per_page' => -1 )); if (have_posts()) { $last_post = null; while (have_posts()) { the_post(); if (get_the_ID() == $current_post) { if ($i < ($wp_query->post_count - 1)) { $href = '<a href="' . get_permalink($last_post) . '">' . $link . '</a>'; echo str_replace('%link', $href, $format) . "\n"; } } $last_post = get_the_ID(); } } wp_reset_query(); } function next_post_link_sorted($section_name, $current_post, $format, $link) { query_posts(array( 'section_name' => $section_name, 'posts_per_page' => -1 )); if (have_posts()) { $use_next_post = false; while (have_posts()) { the_post(); if ($use_next_post) { if ($i < ($wp_query->post_count - 1)) { $href = '<a href="' . get_permalink(get_the_ID()) . '">' . $link . '</a>'; echo str_replace('%link', $href, $format) . "\n"; break; } } else if (get_the_ID() == $current_post) { $use_next_post = true; } } } wp_reset_query(); }
Usage:
<span class="nav-prev"> <?php previous_post_link_sorted('work_posts', get_the_ID(), '< %link', 'PREVIOUS'); ?> </span> <span class="nav-next"> <?php next_post_link_sorted('work_posts', get_the_ID(), '%link>', 'NEXT'); ?> </span>
Forum: Plugins
In reply to: [My Post Order] single post page prev/next post issueHi, any progress on this? I just ran into the same issue.
Thought I might get around it by creating a custom nav function using WP_Query to pull the section_name but instead of returning what’s expected I’m getting all posts. Any thoughts on that? I’m happy to contribute my fix code if I can just figure out why WP_Query isn’t working. Here’s the full function for the custom previous link so far:
function previous_post_link_sorted($section_name, $current_post, $format, $link) { $postsQuery = new WP_Query(array( 'section_name'=>'Work Posts', 'posts_per_page' => -1, )); if ($postsQuery->have_posts()) { $last_post = null; while ($postsQuery->have_posts()) { $postsQuery->the_post(); //var_dump($postsQuery->post); if ($postsQuery->post->ID == $current_post) { if ($i < ($postsQuery->post_count - 1)) { $href = '<a href="' . get_permalink($last_post) . '">' . $link . '</a>'; echo str_replace('%link', $href, $format) . "\n"; } } $last_post = $postsQuery->post->ID; } } }