Akram Taghavi-Burris
Forum Replies Created
-
Forum: Installing WordPress
In reply to: WordPress with no FTPThank you all I used the following in the wp-config.php file to make it work
define( ‘FS_METHOD’, ‘direct’ );
Forum: Themes and Templates
In reply to: Query a Custom Post Type by categoryAfter some trial and error I discovered my problem was in the way I was query the taxonomy for the lesson. Also I had be using the category name, which I should have be query the category slug.
In the end I used the following query to retrieve the correct lessons by category for each course:
<?php $lesson = get_post_meta($post->ID, 'lessons', false); //get the lesson custom field values as an array foreach($lesson as $lesson) { //for each lesson (array) ?> <tr> <th> <?php $lesson_name = get_term_by( 'slug', $lesson, 'category'); echo $lesson_name->name; //echo lesson name ?> </th> </tr> <?php /* Lesson query */ $args = array( 'post_type' => 'lessons', 'orderby'=> 'date', 'orderby'=> 'date', 'order' => 'ASC', 'tax_query' => array( array( 'taxonomy' => 'lesson_category', 'field' => 'slug', 'terms' => $lesson ) ) ); //get the taxonomy (cat) for the lesson value $mylessons = get_posts( $args); //query the lesson category foreach ( $mylessons as $post ) : setup_postdata( $post ); ?> <tr> <td> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </td> </tr> <?php endforeach; /*end lesson query*/ } ?>Forum: Themes and Templates
In reply to: Query a Custom Post Type by categoryAny help would be appreciated.
Forum: Fixing WordPress
In reply to: Numbered Pagination with WP QueryThat it! I can’t believe I didn’t notice that.
Thanks for your help, it works great now.Forum: Fixing WordPress
In reply to: WP Loop By MonthI found a plug-in that does exactly what I need.
The Date Pagination this is a great plugin. You can download it here https://keesiemeijer.wordpress.com/date-pagination/
Forum: Fixing WordPress
In reply to: Numbered Pagination with WP QueryThank you for the help!
echo paginate_links($args);Seemed to fix the function problem. However after viewing the page I don’t get page numbers. The only thing that is displayed is the word Array
Does anyone have an idea why this could be happening?
Forum: Plugins
In reply to: [UpdraftPlus: WP Backup & Migration Plugin] Failed to uploadThank you for your advice. Perhaps there was a server error or something, but I got it installed now.
Thanks again.Forum: Fixing WordPress
In reply to: WP Loop By MonthDoes no one have answer????
Thank you vtxzzy. I had another project come up and never got back to this. I can’t believe that all I needed were quotes.
This worked perfectly.Forum: Plugins
In reply to: [Author Avatars List/Block] Widget not displaying when logged out.Thanks for your quick response.
When you asked about adding a text widget, I did, and it didn’t work. So then I just added some text and that still didn’t show.This lead me to believe there was something wrong in my theme. There was!
It turns out I had a an if logged in condition right before the widget that hadn’t been closed.Sorry to bother you with this.
I’ve fixed it now.
Thanks again for your swift reply.
Forum: Plugins
In reply to: [Event Registration] Submit Button not workingI’m having the exact same problem! I need this resolved soon.
Forum: Fixing WordPress
In reply to: RSS Feed no paragraphs in contentThanks!
I checked out the blog post you mentioned and it did the trick. I now have paragraph tags in the content of my rss feed.I did notice though that some readers still don’t show the formatting, for example the Sage extension in Firefox, but in Safari it seems to be just fine. It may just depend on the reader then, because the XML appears to be correct.
This might also be attributed to the individual reader, but the captions to my images in the rss typically show up fine, while say for example in Sage extention for Firefox it displays with the caption tag around it like so:
[caption id="attachment_1895" align="aligncenter" width="599"] Caption Text Here [/caption]Any ideas why this would happen?
Oh, and I also notice in the XML there is an unmatched paragraph tag before the content, I just wonder where it is coming from. We’ll at least the main paragraph issue is resolved.
This is what I ended up putting in my functions.php
/*FORMAT get_the_content WITH PARAGRAPHS*/ function get_the_content_with_formatting ($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') { $content = get_the_content($more_link_text, $stripteaser, $more_file); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); return $content; } /* THUMBNAIL IN RSS FEED */ function rss_post_thumbnail($content) { global $post; if(has_post_thumbnail($post->ID)) { $content = '<p>' . get_the_post_thumbnail($post->ID) . '</p>' . get_the_content_with_formatting(); } return $content; } add_filter('the_excerpt_rss', 'rss_post_thumbnail'); add_filter('the_content_feed', 'rss_post_thumbnail');I’m having a really hard time with this. I’ve got the option for a text area to show up in the drop down, and added the text area to both the section and result pages, but I still can’t get it to show up.
I think the issue is that the question type is not linking to the option of a textarea, for some reason.I don’t know where I’m messing up.
Please if any one can give me some advice as to which files and lines of code, I need to edit so that when I select textarea as a type when I create a question for a survey, the survey will display the textarea on that question.Thanks for the help.
Forum: Plugins
In reply to: [WP Survey And Quiz Tool] [Plugin: WP Survey And Quiz Tool] Scale QuestionThanks, that helped
How does that work?