accend4web
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Blogus] WordPress shopping cartSo what I think your saying is that I want be able to use the Blogier child theme with the Blogus-Pro?
Forum: Themes and Templates
In reply to: [Blogus] WordPress shopping cartIt seems I am using the Blogier child theme. So if I upgrade the Blogus to Pro, will that then allow me to use the shopping cart in Blogier.
It would be useful if you had an example on your site of a shopping cart version, I just checked and there doesnt seem to be one, also do I purchase blogus pro, then upload that as a theme, and then will the blogius child theme work in that it will have the shopping cart.
- This reply was modified 7 months, 3 weeks ago by accend4web.
Hi Michael, thanks for getting back to me, and hopefully you’ll understand what I think the issue is, I’ll use some pics like you have.
So all my posts have excerpts, which I have written in the post admin as per the image below, and I’ll try and match the images up to the posts so you can see it clearly.
Then on the page where I am using the ‘latest post’ blocks, you can see that I have set it to ‘excerpt’ and also max number of words to ’10’, but you will see that on the website its still showing the excerpt in full.
So as you can see the City of London walk has an excerpt, and it matches exactly what you see on the website.
But, if I have for example a post without an excerpt as below, and again set the ‘Latest Post’ block to use ‘Excerpt’ and set the maximum words to 10
and again set the ‘Latest Post’ block to use ‘Excerpt’ and set the maximum words to 10, it then takes text from the main content area ans sets that to 10 words instead, which is no good as in some cases the text at the top of my page isnt supposed to be an excerpt.
Does that make sense? Basically I want the latest posts block to use the excerpt that I have written and I set the number of words for that, rather than taking text from the page itself.
I think I have it, I thought that selecting ‘Excerpt’ would mean it shows the excerpt Ive written, but the way you have it is that it will only work if the post doesnt have a excerpt and instead it shows one from the full copy, so I think this is a bug.
Forum: Developing with WordPress
In reply to: Boostrap not workingOh well done, you got it.
Thank you.
Got it sorted thanks, have supplied the full index page for others below, which doesnt show posts that have a certain category id
<?php /** * Index template. * * @package Neve */ /** * Filters the container classes. * * @param string $classes Container classes. * * @since 1.0.0 */ $container_class = apply_filters( 'neve_container_class_filter', 'container', 'blog-archive' ); get_header(); $wrapper_classes = [ 'posts-wrapper' ]; if ( ! neve_is_new_skin() ) { $wrapper_classes[] = 'row'; } $wrapper_classes = apply_filters( 'neve_posts_wrapper_class', $wrapper_classes ); $load_before_after_hooks = get_theme_mod( 'neve_blog_archive_layout', 'grid' ) === 'default'; ?> <div class="<?php echo esc_attr( $container_class ); ?> archive-container"> <?php /** * Executes the rendering function for the featured post. * * @since 3.2 */ do_action( 'neve_do_featured_post', 'index' ); ?> <div class="row"> <?php /** * Executes the rendering function for the sidebar. * * @param string $context Sidebar context. * @param string $position Sidebar position. * * @since 1.0.0 */ do_action( 'neve_do_sidebar', 'blog-archive', 'left' ); ?> <div class="nv-index-posts blog col"> <?php /** * Executes actions before the posts loop start. * * @since 2.4.0 */ do_action( 'neve_before_loop' ); /** * Executes the rendering function for the page header. * * @param string $context Header display page. * * @since 2.3.10 */ do_action( 'neve_page_header', 'index' ); /** * Executes actions before the post loop. * * @since 2.3.10 */ do_action( 'neve_before_posts_loop' ); if ( have_posts() ) { /* Start the Loop. */ echo '<div class="' . esc_attr( join( ' ', $wrapper_classes ) ) . '">'; $pagination_type = get_theme_mod( 'neve_pagination_type', 'number' ); if ( $pagination_type !== 'infinite' ) { global $wp_query; $posts_on_current_page = $wp_query->post_count; $hook_after_post = -1; if ( $posts_on_current_page >= 2 ) { $hook_after_post = (int) ceil( $posts_on_current_page / 2 ); } $post_index = 1; } neve_do_loop_hook( 'before' ); /** * Exclude posts from the main loop * * @param array $excluded_posts Excluded post ids. * @since 3.2 */ $excluded_posts = apply_filters( 'nv_exclude_posts', [] ); while ( have_posts() ) { the_post(); $pid = get_the_ID(); if ( in_array( $pid, $excluded_posts, true ) ) { continue; } if (!in_category( array('175'))) { neve_do_loop_hook( 'entry_before' ); if ( $load_before_after_hooks ) { /** * Executes actions before rendering the post content. * * @since 2.11 */ do_action( 'neve_loop_entry_before' ); } get_template_part( 'template-parts/content', get_post_type() ); if ( $load_before_after_hooks ) { /** * Executes actions after rendering the post content. * * @since 2.11 */ do_action( 'neve_loop_entry_after' ); } if ( $pagination_type !== 'infinite' && $load_before_after_hooks ) { if ( $post_index === $hook_after_post && $hook_after_post !== - 1 ) { /** * Executes actions in the middle of the loop. * * The actions only fires if the pagination is not set as "infinite scroll". * * @since 2.3.10 */ do_action( 'neve_middle_posts_loop' ); } $post_index ++; } } neve_do_loop_hook( 'entry_after' ); } echo '</div>'; if ( ! is_singular() ) { /** * Executes the rendering function for the pagination. * * @param string $context Pagination location context. */ do_action( 'neve_do_pagination', 'blog-archive' ); } } else { get_template_part( 'template-parts/content', 'none' ); } ?> <div class="w-100"></div> <?php /** * Executes actions after the post loop. * * @since 2.3.10 */ do_action( 'neve_after_posts_loop' ); neve_do_loop_hook( 'after' ); ?> </div> <?php do_action( 'neve_do_sidebar', 'blog-archive', 'right' ); ?> </div> </div> <?php get_footer();
Hi Poonam, thank you for the reply, I htink I have found the area where I need to work in.
I can see $excluded_posts = apply_filters( ‘nv_exclude_posts’, [] );
But what I do need is to exclude categories, so that if posts have certain categories those posts dont show.
So something like this, but this breaks it.
$excluded_categories = apply_filters( 'nv_exclude_categories', [175] ); $cid = get_the_ID(); if ( in_array( $cid, $excluded_categories, true ) ) { continue; }
Would it be possible to help me work this out.
Thanks
Forum: Plugins
In reply to: [Timeline Express] Timeline by date, then show morehello, anyone there ??
Forum: Plugins
In reply to: [Grid Plus - Unlimited grid layout] Parent grid show child grids all in 1It’s ok, thank you, Ive changed my mind. I’d still be interested thoigh if it’s possible, thanks.
Forum: Fixing WordPress
In reply to: Free single page themeYe I understand what you mean, but I have had a theme in the past that allowd me to build sections on the home page4 and then click and scroll to them,
Forum: Fixing WordPress
In reply to: Free single page themeHi Steve,
Yes it would make sense for it to be that wouldnt it, but for some reason these themes are categorised as one page theme as you create one page at a time, so essentially a website.
Its strange, I dont seem to be able to use the search to find an actual theme that is only a scrolling 1 page theme.
Unless Im not doing something right within the’custimose’
Lee
It worked great thank you.
In set up of PayPal it defaulted to the other plugin, and so didnt realise I had the other plugin activated.
But its working fine now thank you
Lee
Hi, hopefully this is what you need
https://github.com/accend/lee-app-1/blob/master/woocommerce1
Forum: Fixing WordPress
In reply to: Fatal error and noticeNo I didnt unfortunately follow any guide. So what happened is that im with 123-reg and I was paying more for hosting than I wantedk too, so to downgrade I had to buy new cheaper hosting in my account.
So all i did was download a copy of the database, and a copy of the website files, then recreated both on the new hosting by changing the wp_config file and pushing them up, and creating a new db, and thought that would be fine.
But seems to have caused an issue
Forum: Fixing WordPress
In reply to: Fatal error and noticeFatal error: Cannot redeclare _wp_register_meta_args_whitelist() (previously declared in /home/wmr1wkhyq1j6/public_html/wp-includes/meta.php:1393) in /home/wmr1wkhyq1j6/public_html/wp-includes/deprecated.php on line 4066
Notice: is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/wmr1wkhyq1j6/public_html/wp-includes/functions.php on line 5663
Notice: is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/wmr1wkhyq1j6/public_html/wp-includes/functions.php on line 5663