andy3000
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: writing option re automatic tag nesting missingThanks. I would switch to shortcodes but I can’t understand the instructions for making them. How would I make a shortcode from this:
<?php global $post; // required $args = array('numberposts'=>1, 'category'=>75,39,46,23, 'order'=>'ASC'); $custom_posts = get_posts($args); foreach($custom_posts as $post) : setup_postdata($post);?> <h6 class="home-feature"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h6> <?php the_post_thumbnail(); the_excerpt( sprintf(__( 'Read More<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ), get_the_title()) ); ?> <a href="<?php echo get_permalink(); ?>" class="purplez"> Read More</a> <?php endforeach; ?>
- This reply was modified 8 years, 1 month ago by andy3000.
Forum: Plugins
In reply to: [Add From Server] Files not appearing when browsedPlease mark as solved there was a database setting error.
I need to switch these posts to one across so you won’t be able to see the issue.
Forum: Plugins
In reply to: [Offers for WooCommerce] Button position and translation issuesThe line about completing the form is in the plugin
Can you tell me which file? I tried to use English to English translation with Loco Translate but that didn’t work and I can’t find that line in the plugin files.
Forum: Plugins
In reply to: [WooCommerce] WooCommerce – Custom emails per productSo if the product slug was ‘owls’ then the correction would be? I don’t think I have it right?
// bail if shipping method is not expedited if ( ! in_array( email_order_items_table(), array( 'owls' ) ) ) return;
Forum: Plugins
In reply to: [WP Photo Album Plus] Host shut us down for high server loadThank you so much. You are awesome!
Forum: Plugins
In reply to: [WP Photo Album Plus] Host shut us down for high server loadThanks for the reply. Could you tell me which file calls the counter. I’m thinking of just removing the lines of code that call it while we decide about a hosting upgrade or a new host, so that we can turn your plugin back on.
Forum: Themes and Templates
In reply to: Theme missing ids and classesThanks. I should have looked in the header. They had
<body> instead of
<body <?php body_class(); ?>>Forum: Plugins
In reply to: Function to display title and content of another postI switched to this. It displays the post title but no contents.
<?php $page_id = 324; // 123 should be replaced with a specific Page's id from your site, which you can find by mousing over the link to edit that Page on the Manage Pages admin page. The id will be embedded in the query string of the URL, e.g. page.php?action=edit&post=123. $page_data = get_page( $page_id ); // You must pass in a variable to the get_page function. If you pass in a value (e.g. get_page ( 123 ); ), WordPress will generate an error. By default, this will return an object. echo '<h3>'. $page_data->post_title .'</h3>'; echo apply_filters('the_content', $page_data->post_content); // echo the content and retain WordPress filters such as paragraph tags. ?>
Forum: Plugins
In reply to: [[GWA] AutoResponder] GWA autoresponder imagesI just solved it. I went to the html editor but ndidn’t hit the source tab. The <> s were being converted.
So you can use images with the free version.I don’t think this is a plugin issue. You can turn off comments individually for a post, but it will probably keep the old ones. To remove them completely remove the comments lines from your theme templates.
To get rid of comments on pages you can use the ‘no comments on pages’ plugin.Forum: Fixing WordPress
In reply to: Theme wont display a read more link on category pageThanks!
That code works. As an obvious place to use the map plugin is probably on the front page that shows latest posts you might want to add that code to the installation directions. Thanks!
Here is the functions file in pastebin. Note that error has changed to the one in the post directly above this. (Its telling me I need to ad the filter)
I had not upgraded but I did and I corrected an error in the php file but now I’m getting
Basic Google Maps Placemarks error: JavaScript and/or CSS files aren’t loaded. If you’re using do_shortcode() you need to add a filter to your theme first. See the FAQ for details.
even though I added the filter code above.