AlternativePhotography
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Show Posts] Does is make sense to use WP show posts for large listings?Thank you! Very helpful!
Forum: Plugins
In reply to: [WP Show Posts] Does is make sense to use WP show posts for large listings?I would need to make a childs theme to do this, right? Or the functions.php will update and go back to the previous version every time the theme updates? Correct?
Forum: Plugins
In reply to: [WP Show Posts] Does is make sense to use WP show posts for large listings?Trying to do this… I copy paste your code into the functions.php
I don’t understand the last bit.
“You can replace this part’s wpsp_display( 4474, $settings ); WPSP List ID of 4474 to your WPSP list.”
Is this what I do on the post?“You can use [cat_listing] shortcode after implementing this.”
Where do I do this? on the post page?How does the code know which categories to display? Where do I list those?
Forum: Plugins
In reply to: [WP Show Posts] Does is make sense to use WP show posts for large listings?Great. Thank you so much for your help! Much appreciated. ??
Forum: Plugins
In reply to: [WP Show Posts] Does is make sense to use WP show posts for large listings?Hi,
Thank you for your reply and help.
Yes, I guess I can make a new PHP template for the new site. I was just trying to build the page with the WP show posts, since I have the plugin.
I’m a designer and don’t know so much about code, so I don’t really know what you mean by “You can loop the WPSP list with category.”
The code you show, is that in the PHP functions or where would that be added?Forum: Plugins
In reply to: [Post Grid and Gutenberg Blocks - ComboBlocks] Display posts in sidebarOk, thank you, I’ll try again. ??
Forum: Plugins
In reply to: [Post Grid and Gutenberg Blocks - ComboBlocks] Display posts in sidebarHi,
Thank you, here is the page I’m trying to add in the sidebar.
https://www.alternativephotography.com/gallery/
The issue is that when I paste the code into a widget, it crashes. I don’t think you can add anything with .PHP to the widget.
Is there a way around this?Forum: Themes and Templates
In reply to: [Smart Magazine] Styling search resultsOk, that I understand. I’m thinking it has less to do with the plugin and more to do with how the theme displays the information? Just a thought.
Forum: Themes and Templates
In reply to: [Smart Magazine] Loading content from template-partsGreat thanks, now it’s doing it. I didn’t call it “template-…” first because when i rename it that it says i don’t have access to edit the file. Weired.
Anyhow, this problem solved now. Thank you so much for your help and for a great theme.Forum: Themes and Templates
In reply to: [Smart Magazine] Loading content from template-partsThank you very much for your reply. I’ve done this exactly, and it looks like the page has the template in the dashboard.
I’ve added dummy text to the page-events.php – sorry for the long code in this post, but I thought it’s better if I add the whole thing:
<?php /* Template Name: page-events */ ?><?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package Smart Magazine
*/get_header(); ?>
<div id="primary" class="content-area col-sm-8 col-main">
<main id="main" class="site-main" role="main"><?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'template-parts/content', 'page-events' ); ?>
<p>Dummy text here</p>
<?php
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?><?php endwhile; // End of the loop. ?>
</main><!-- #main -->
</div><!-- #primary --><?php get_sidebar(); ?>
<?php get_footer(); ?>
and I’ve added dummy text to the content-page-events.php file in a few places:
<?php
/**
* The template used for displaying page content in page-events.php
*
* @package Smart Magazine
*/?>
<p>Dummy text here</p>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?><p>Dummy text here</p>
</header><!-- .entry-header -->
<?php if ( has_post_thumbnail() ) : ?>
<div class="featured_image">
<?php the_post_thumbnail( 'large' ); ?>
</div><!-- featured_image-->
<?php endif; ?>
<div class="entry-content">
<?php the_content(); ?>
<p>Dummy text here</p>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'smart-magazine' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content --><footer class="entry-footer">
<?php edit_post_link( esc_html__( 'Edit', 'smart-magazine' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->
I don’t get it to load… as you can see here:
https://69.89.31.128/~malinfab/alt-proc/community/events-listings/
Any ideas? ?? It would be much appreciated!Forum: Fixing WordPress
In reply to: Redoing website – what is a good working order?Hi,
Thanks, that is a good suggestion. I have not used Updraft before.
Do I just back up posts and pages and comments and move them back? Is that what you mean?
I guess I add plugins and php modifications to pages directly on the new installation. ??I have the free version, but when I’m sure I can do this I’ll get the pro version…
Thank you for your patience.
I have read and read and read, but I still can’t figure out how to do this…This is (a bit simplified) what I’m trying to do:
(Insert usp_mail_subject that comes from a form)
Writer / Photographer (insert user_submit_name from a form)
A bit of intro written by me, i.e. not from a form.
<hr>
<body>(insert user_submit_image from a form)(insert usp_post_author from a form)(insert user_submit_image from a form)</body>So, where do i enter the html (my own) and my intro?
I can’t add it to single.php, then i will change every single page…
(Maybe I’m not meant to do this… about to give up… ?? )Thank you. I’ve read it all apart from the .txt file. I’m trying to access it from within my plugin.
“More info: readme.txt and homepage”
But i get a 403:
“403 Permission Denied
You do not have permission for this request /wp/wp-content/plugins/user-submitted-posts/readme.txt”
Can I read it elsewhere?Back again. Sorry I’m not a wiz at backend stuff… Is there a tutorial how to get started?
I’ve set up PAGE templates, but the content I would like to generate is POST templates.
For my posts i use single.php.
Do I make a copy of this and moderate it?
I don’t want all my posts to change, just the ones that are user generated.
Does that make sense to you? ??
So, if i set up a new post template called “user-content.php” or something like that. How do i then get the form into the page here and there?