Khaled Hakim
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Order Cart] "Place order" stalls at "Contacting server, please wait…"I’m using the same plugin. When I click on “Place Order” the “Contacting server” message appears and then it goes away. A pop up window appears “Order successful”…
But I never receive the order via email.
If the orders were saved in a DB, then the email being sent out and not received could be over looked, but if this is an order cart that sends orders to emails, thats the main functionality of this plugin…
Can’t seem to get it to work.. Wondering where to trouble shoot.
Thanks. I deactivated all my plugins. Didn’t solve the issue. I am using a theme I purchased from themeforest and customized for my client’s needs…
The page source indicated that the jQuery being used is 1.11… so that wasn’t the issue at my end.
To resolve the issue, I simply installed the older Legacy version of NextGen called NextCellent… Lightbox doesn’t work in that version either, but Shutter does. And so for me the problem has been worked around – although I would have loved to continue to use the new NexGen plugin as I loved the admin backend interface – so much has evolved since the Legacy (NexCellent)… But in the end I just need the damn thing to work… and this makes it work.
Thank you both for your support @stephen / @photocrati
@photocrati – much love buddy. Will do… Appreciate your help!
Stephen, glad to hear your problem is resolved. I am facing the same issue and I am not sure how you went about fixing your issue. I understand you said that another installed plugin was using jQuery1.6 – but how did you check for that? If you can tell us how you went about resolving the issue, that would be much appreciated.
Forum: Fixing WordPress
In reply to: WordPress 3.4 Bug – Page TemplatesAs stated above, this is how you should declare the Page template name:
<?php
/* Template Name: TemplateNameHere */
?>Worked like a charm. Thanks for the help!
Forum: Fixing WordPress
In reply to: Visual EditorHello. Odd. I faced the same problem today where the visual editor stopped showing up. I stumbled across this post. I disabled all my plugins and then refreshed, the editor appeared again. I enabled my plugins one at a time following that and the visual editor remained visible. So my problem is solved.
But I am wondering what an ISP has to do with the visual editor. The comments above suggesting its an ISP issue baffled me.
Forum: Fixing WordPress
In reply to: 3.1 Update Causing 28px top-spacing in html bodyJust wanted to confirm that the solution provided above fixed my issue. Note that the issue was browser-dependent. On chrome I had no issues at all while on firefox the margin problem was driving me nuts.
Opened the functions.php file found in wp-content/themes/twentyten… added the following code tot he bottom of the file:
function my_function_admin_bar(){ return false; } add_filter( 'show_admin_bar' , 'my_function_admin_bar');
Margin issue resolved pour moi.
Cheers.
?? Cheers.
Sprutt… you saved my life. ?? Appreciated… I was looking for way to undo what has been done (showing excluded images as preview images for a gallery)… and I was about to lose hope when I stumbled across this.
Great stuff… Appreciate your sharing that wish us! Much respect.
This lists 10 pages of the “current” post type on a particular page.
You can modify variables as you like.<?php $typeofpost = get_post_type( $post ); ?> <?php $args = array( 'post_type' => $typeofpost, 'posts_per_page' => 10, 'order'=>'ASC' ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post();?> <li><a href="<?php the_permalink();?>" title="<?php the_title();?>"><?php the_title();?></a></li> <?php endwhile; ?>
Forum: Themes and Templates
In reply to: List custom post types for the current custom taxonomyIsaachorton, try coping the same code buy by enclosing it with <?php and ?> tags…
<?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); query_posts($query_string . "&cat=".$term->term_taxonomy_id); ?>
Let me know if that works for you.
As a follow up to my previos comment above:
Confirmed.. website is now working.
Cheers.
I am getting the same error. I host using GoDaddy. So when I read above that the problem was with my server running on PHP v.4.x… I figured that that was the problem.
I currently am upgrading my hosting server to be able to run PHP v.5.x applications. If you are on GoDaddy hosting, here’s how you can upgrade to PHP v.5x
https://www.wpsecuritylock.com/how-to-upgrade-from-php-4-x-to-php-5-x-at-godaddy/
The change could up to 24hours and that is why I am waiting before I confirm (which I’m sure I will -thanks to Otto’s reassurances!) that it works after I enabled PHP v.5.x.
I will come back here to confirm later.
Cheers.Forum: Themes and Templates
In reply to: Custom post type tags/categories archive pageThat is the same problem I was facing. I was using WordPress 3.0 built in widgets to add a category listing of categories I had created. The thing was that the categories I had created were for a Custom Post (content) Type that I had created myself using Custom Post Type UI plug-in that is so handy. The problem was that when I used the Category listing widget… although the listing of categories did show up… clicking on any single on of them took to me a 404 page on my own blog.
I took the code provided by parandroid and pasted in my functions.php file:
add_filter('pre_get_posts', 'query_post_type'); function query_post_type($query) { if(is_category() || is_tag()) { $post_type = get_query_var('post_type'); if($post_type) $post_type = $post_type; else $post_type = array('post','<strong>cpt</strong><strong>'); // replace cpt to your custom post type $query->set('post_type',$post_type); return $query; } }
In the code above there is a variable “cpt”. I simply replaced this variable, as instructed by parandroid, with the name of the Custom Post Type I had created (which in my case was “Advertisements”) and voila… things worked perfectly.
Thanks for sharing. I am just posting this comment as I noticed no one had posted anything that would point to the succcessful implementation of the above.
If you have any questions or want any help doing any of the above mentioned, I’d be more than glad to help.
Khaled Hakim
Forum: Fixing WordPress
In reply to: Date dissapears on posts made on the same dayThis should help:
Instead of using
the_date();Use the following:
the_time();If you leave the brackets blank in “the_time” function, you will notice that you do not get a date stamp, but a time stamp. To get the date to show instead of the time inside “the_time();” function… use the below:
the_time(‘F j, Y’);
You can find the_date(); in your template folder in one or many of the .php files. Simply replace where desired.
Cheers