wordpress youtube something like a slideshow - wordpress

I have a wordpress site with categories containing youtube videos. So for example i have a category cinema and when you click it you see a sticky post with the youtube video on top and afterwards the titles of the rest of the youtube videos i have for this category. When i click one of the titles the single.php is loaded and i see the youtube video.
My question is: how do I edit the code so in the category-cinema.php when i click one of the titles the video is loaded there without loading the single.php file?

if clicking on a link does not jump to a page, I think you need to use Javascript to accomplish that. then you can go to the archive.php and modify the title link(something like below) inside the loop. :
<h1 class="artitle"><a href="<?php the_permalink() ?>" rel="bookmark">
<?php the_title(); ?>
</a></h1>

Related

How to call single.php file using dynamically posts in wordpress?

I have this href link which is dynamically posted, I want to get the single.php file and the dynamically posts to be redirected to my single.php file Here is my link below:
<a href="/single-<?php the_ID();?>-<?php the_slug(); ?>" class="wrapper" style="background-image:url('<?=$url?>')">
When I click on the link the URL is this way:
/single-137-2014-inaugural-diversity-abroad-conference-4
And I want that page to be redirected to my single.php file. How will I be able to do this?
Any help is muchl appreciated. TIA
I have solved your problem but please read about the get_permalink() function
<a href="<?php echo get_permalink(); ?>" class="wrapper" style="background-image:url('<?=$url?>')">
get_permalink() - Retrieves full permalink (link of a post) for the current post or post ID. This link will be opened post single page, which means if this is a custom post type and you create it as a separate single-post-type.php, then it will be as an open single-post-type.php page. Otherwise it appears as single.php.
For your information, posts have been opened in single.page while page opened with page.php. read about this link https://codex.wordpress.org/Post_Type_Templates

How to show content without featured image

I have add a new post from admin panel of wordpress and the post is showing on home page.when I have added the featured image of the post then post is coming with full content means post title, post description, read more and featured image.
but when I have add post without featured image then the it is showing me only description of the post without title,read more button.
So please help me how can i show post content,excerpt and date etc of post without featured image.
Used as a replacement for the_content() to force excerpts to show within The Loop.
<?php the_excerpt(); ?>
//inside brackets you can give limit for exerpt
for date you can use within loop
<?php the_time('F jS, Y') ?>

How to Remove wordpress Featured Image on Posts

I am using the Hueman wordpress theme in my home. I want to show the featured image on the post but I don't want to that image in a single post.
Can anyone help with this? Here is the link
I think you want to customize single post detail page.
So, go to single.php.
Usally this file is located in your theme path that is as below.
www.domain.com/wp-content/themes/your-theme-name/
Go to above path and open single.php. In that remove below code get_template_part( 'content', get_post_format() ); and replace it with
the_title(); //For Post Title
the_content(); //For Content of the post
If you want to add image use the_post_thumbnail( 'single-post-thumbnail');

add page title to latest posts frontpage in wordpress

I set my reading section to latest posts in Wordpress. My homepage logs fine but I would like to add a page title above the posts. I have looked in my theme's files and couldn't find the file to edit. As a test, I tried to add an image to my theme's loop.php and it appeared above the post on my homepage. The location was right but the image appeared on every one of my category blog list pages. How do I add a page title to the homepage that only appears on the homepage above the blog list?
Here are some resources for you to use, WordPress: https://codex.wordpress.org/Function_Reference/get_the_title
Eg:
you can use
<?php echo get_the_title(); ?>
or
<?php echo get_the_title($ID); ?>
There is lot of resources on WordPress, best of luck!

one post into an iframe in wordpress

in wordpress how can I load an one post into lightbox iframe, like www.wookmark.com, when click on details and opening the lightbox with post and related posts. I did so, in lndex.php I set the loop <?php the_content();?> then in that loop I write the second <?php the_content();?> which made dabsolute and display none, then with javascript I am callling the div with second <?php the_content();?> and appears the post...but I want the post as in single.php, I mean that navigation links in it open the next post in iframe and not in main page, I have also tried to call iframe putting in it in that case the whole single.php loaded in iframe, with header, footer and navigatin menu, but I just want only the content, how can I relazie that,?
I didn't understand your question, but if you want your posts to display in home page like in www.wookmark.com you can use
query post

Resources