langsuyar
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: permalink from your post-edit pageThere’s several spots where you can get the Permalink. On the Manage Posts page, it’s in the “Status” column (just right-click and Copy Link). When you edit a post, it shows the Permalink right under the title of the post (like Permalink: https://www.worch.com/2008/09/09/unreal-2-editing-tutorials/ Edit). And of course when you browse to the page/post, it’s in the address bar of your browser.
Forum: Fixing WordPress
In reply to: Individual Images Side by SideYou can do things like
[gallery id="123"]
to retrieve galleries from different posts. But besides that, you have total control over the styling of your page – if your CSS displays images in such a way that images are shown in separate rows, you need to change the styling. Big topic, if you’re looking for specific help you should give us a link to a post where the image styling is going wrong for you.Forum: Fixing WordPress
In reply to: Right Hand Sidebar Formatting LostI looked at the page source, yes. Since WordPress is PHP and creating that HTML code server-side, I have no idea exactly how it was generated. But there’s got to be sidebar code in your theme somewhere (and it should be widget-friendly), and somewhere there, an extra <div> is inserted.
Closest thing I could suggest remotely is to search all of your PHP files for
<?php if ( function_exists('dynamic_sidebar')
It’s gotta be around there somewhere.
Forum: Fixing WordPress
In reply to: Right Hand Sidebar Formatting LostAs a European native, it is my foremost duty to point out that the correct term is “football”, not “soccer” ?? Although I see that you’re from the UK, so you might disagree. But besides that…
Your sidebar_right div closes after the subscribe widget. All other sidebar elements are floating individually.
<div id="sidebar-right" class="dbx-group" style="position: relative; display: block;"> <div id="add-to-any-subscribe" class="dbx-box Add_to_Any_Subscribe_Widget_display dbx-box-open dbxid0" style="position: relative; display: block;"> </div> <span class="dbx-box dbx-dummy dbx-offdummy" style="overflow: hidden; display: block; width: 0pt; height: 0pt;"/> --> </div> <div id="text-219082021" class="dbx-box widget_text">
Try removing the –> </div> and moving to the end of the sidebar block.
Forum: Fixing WordPress
In reply to: How to make link to recent post?This depends a lot on what’s already happening on the page, if there’s a Loop or not and if you want to do it inside that loop or later. the_permalink just fetches the permalink for whatever post is being processed, and if you have a Loop that processes a number of posts, the_permalink points to that last post, not the first.
You want to use get_permalink() to fetch the permalink of your first post and then display it. For that to work, you need to figure out the post_id of that first post, of course.
You could also do a Loop that does a query_posts with “showposts=1” and then run the_permalink().Really depends on what the page is doing/trying to do, need more information. This codex entry has a lot of information on how to do single and multiple Loops on a page.
Forum: Fixing WordPress
In reply to: quick question – parent and child pageshttps://codex.www.ads-software.com/wp_list_pages
Use the depth parameter.
Forum: Fixing WordPress
In reply to: How to make link to recent post?Trying to link with…what? Your post got mangled.
Forum: Fixing WordPress
In reply to: Page content in a sidebarOh, and you’ll want to do that in single.php and category.php. If it’s only a single category that you want to change, you can also change category-x.php to only include a different sidebar there.
Forum: Fixing WordPress
In reply to: Page content in a sidebarif ( have_posts() ) { the_post(); rewind_posts(); } if ( in_category(x) || in_category(y) ){ include(TEMPLATEPATH."/sidebar_special.php"); }
Forum: Fixing WordPress
In reply to: Theme’s won’t loadYour image links produce a 403.
Forum: Fixing WordPress
In reply to: Changed webhost, now blog post order reversed. HELP!Forum: Fixing WordPress
In reply to: Example: WordPress Gallery ImprovementsFixed the non-Permalink issue, which was laughably easy to do using get_permalink(). So you just do
$linkback2 = get_permalink($linkback); echo "<center>Go to the <a href=\"$linkback2\">parent post for this gallery</a>.</center><br />";
Or sidestep the variable reassign by wrapping the get_permalink() function straight in the echo. Learning WordPress is fun ??
Forum: Fixing WordPress
In reply to: next post linkDescribe “circles around posts from a category”. You can style your links in CSS to look like a button, but you sounds like you’re trying to do something more advanced than that.
Forum: Fixing WordPress
In reply to: Create single-sided border for columns?Check https://www.w3schools.com/css/css_border.asp
You can do borders for each side individually, and have various styles to pick from. In your example, the border is created by this CSS code:
#sidebar {style.css (line 118) border-color:#000000 #000000 #000000 #C0C0C0; border-style:solid solid solid dotted; border-width:0 0 0 2px;
Forum: Fixing WordPress
In reply to: Attachment.php doesn’t display imageTurns out that the Codex is wrong about the hierarchy, it says that it’s Index.php <- Attachment.php <- … when in reality, Single.php is used before (so the correct hierarchy is Index.php <- Single.php <- Attachment.php <- …).
But that doesn’t really help me, as I still get the same problem: when I make a copy of Single.php and use it as Attachment.php, my images aren’t displayed even though the code is identical. That also happens when I make Image.php.
If this is a bug I’d like to report it, but not without a few more data points. If you have a couple of minutes, please help verifying whether Attachment.php works for your WordPress blog!
1. Open Single.php
2. Save As Attachment.php
3. Upload Attachment.php to your server
4. Navigate to any gallery on your server (anywhere where you used the [Gallery] shortcode)
5. When you click on an thumbnail, does the resulting attachment page display an image? If not, does it do so after you delete Attachment.php from the server again?
6. Post your results. Thanks!