Show posts from a single category by default using wordpress.com

I have a blog at wordpress.com on the legacy "Personal" plan. I blog about different but related subjects and categorise the posts accordingly. The blog was originally about one subject but, over time, the content diverged. One subject is more generally accessible while the second is more specialized. When someone visits my blog, can it show posts only from the more general category by default? For example, I could create a new page containing the "Blog Posts" block to show …
Category: Web

How do I fix wp-admin error when exporting reusable blocks?

I am having trouble with the export to json feature of the reusable blocks shown below. I am getting the following console errors after pressing the export to json link: Access to fetch at 'https://public-api.wordpress.com/wp/v2/types/wp_block?_locale=user' from origin 'https://mytestsiteXXXXX.wordpress.com' has been blocked by CORS policy: Request header field x-wp-nonce is not allowed by Access-Control-Allow-Headers in preflight response. GET https://public-api.wordpress.com/wp/v2/types/wp_block?_locale=user net::ERR_FAILED Uncaught (in promise) {code: 'fetch_error', message: 'You are probably offline.'} It has been a while since I have used WP.com, so …
Category: Web

Broken wordpress site, non-working links and no access to wp-admin page

I was just handed a broken Wordpress site that I am now in charge of Administering (administrating?). EDIT: Since posting this, I have made some new discoveries about my issues. When trying to access the Wordpress Administration page (by clicking the link from logging into the dashboard), I get a 404-not found page. This 404 error page is branded (has same background and styling) as all the other pages on the website being hosted. I'm guessing my links are broken. …
Category: Web

Where is the htaccess in wordpress.com hosting?

I am looking to upload a htaccess file or amend the existing htaccess, assuming there is one being used by WordPress. All i want to achieve is denying access to my WordPress site and allow specific IPs. I know how to do this and already achieve this elsewhere but haven't done this type of config on WordPress I bought my Word press hosting through WordPress and i connect the SFTP to the details they provide. And it appear to be …
Category: Web

How can I transfer followers from Wordpress.com to a self-hosted Wordpress?

Recently, I performed a domain migration from a wordpress.com domain to a self-hosted solution. The primary complaint was the loss of followers gained through Wordpress ( http://marygoround.me/2012/02/18/to-all-my-current-wordpress-followers/ ) I don't see any plugins that Automattic has released to allow similar functionality to "Subscribe" and "Like" content on self-hosted blogs, so it's feeling more and more like a closed garden. What can I do to make sure this audience is preserved after the migration?
Category: Web

How to integrate together a website currently hosted Wordpress.com and a custom web application currently hosted on Azure?

Background: I am a C# developer and have developed a web site/application that can be hosted on Azure (or any Linux server). Another person has created a Wordpress blog and he is managing it through standard hosting service provided by Wordpress.com Problem: We want to fuse our sites together so they are accessible through a single domain name. Ideally it would be seamless and we should navigate from Article/Post pages created in Wordpress to URLs handled and rendered by the …
Category: Web

How to import only certain comments from post[s]

NOTICE: This is solely NOT a WordPress.com Question, but related to WordPress Migration and Export-Import. I started blogging in WordPress.com and then shifted my blog to a self-hosted site. But even after that, I din't shut down my .com blog for some internal reasons. Though I stopped updating the .com blog, users are still commenting there. But after a long time, I now determined to shut down the .com site. But before that, I want to import some of the …
Category: Web

Trying to call dynamic content as a shortcode attribute

I'm trying to add a dynamic attribute to an existing (3rd party) shortcode. The shortcode appears several times on the same page. When I do this (in my functions.php), I can get the first shortcode to output correctly but the others don't. function testOne(){ return do_shortcode('[abc type="contact" orderby="menu_order" order="asc" style="list-post" logic="and" abc_tax_student="student1" abc_tax_teacher="'.basename(get_permalink()).'"]'); } add_shortcode('shortcode1', 'testOne'); function testTwo(){ return do_shortcode('[abc type="contact" orderby="menu_order" order="asc" style="list-post" logic="and" abc_tax_student="student2" abc_tax_teacher="'.basename(get_permalink()).'"]'); } add_shortcode('shortcode2', 'testTwo'); function testThree(){ return do_shortcode('[abc type="contact" orderby="menu_order" order="asc" style="list-post" logic="and" abc_tax_student="student3" …
Category: Web

Getting Rid of the WordPress.com Toolbar on Other Sites?

I recently started a WordPress blog, and now I get an ajax-loaded toolbar showing up at the top of tonnes of pages. It's all links to my WordPress accounts and blogs and stuff. It's fine that it shows up when I'm on WordPress or working with my blog, but I see it now on all sites that (I'm presuming) are built on WordPress.com). i.e. failblog.org. Is there any way to turn off this toolbar?
Category: Web

Import local site to Wordpress.com

There are many questions about the opposite of this question: import from server to local, but it's not the same, so please do not mark as duplicate. I have installed WordPress with MAMP. After modifying the php and css files, I have my website. Now I am trying to upload it to Wordpress.com so it's live. It's a test for university, so no need to have a fancy domain, the free one is enough for me. I have tried: Import …
Category: Web

Rest API in self-hosted page doesn't work

First of all, I'm a total WordPress newbie and I genuinely couldn't find an answer to my question: I have a site hosted in WordPress (https://srebelo80.wordpress.com) which I'm planning to use as a testing API endpoint, however, when I test the endpoint https://srebelo80.wordpress.com/wp-json/wp/v2/posts I get a Page not found. I'm reading the documentation and it seems like WordPress has integrated Rest API to the core so in technically this should work without any plug-ins? Am I missing something? Thanks a …
Category: Web

How to make child theme inherit parent custom theme options

It's extremely possible this question has been answered before, but I'm not 100% sure of my terminology. The parent theme in question is a premium theme. One of the things it does is offer custom sections under Themes > Customise. I include an image so y'all know exactly what I'm talking about, in case I'm using the wrong words. I need to overwrite some parts of the parent CSS, so of course I thought of a child theme. However when …
Category: Web

Using Wordpress.com API to retrieve featured images

I'm using the wordpress.com API to access a blog's content: https://public-api.wordpress.com/wp/v2/sites/MYSITENUMBER/pages It works great, I can access all the text content I need, however, I cannot access the /media endpoint to get the featured_image associated with each page. The media endpoint gives me a 401 error. I can access that endpoint using the developers console: https://developer.wordpress.com/docs/api/console/ Because I'm signed in as the owner of the site. My question is, how do I properly retrieve the featured images? It seems crazy …
Category: Web

Moving media between blogs changes the URL subdirectory

On wordpress.com, I'm exporting media from one blog and import it into another. Problem: On the source blog, some media files are e.g. in Folder "2014/02", but they get imported into folder "2014/03". As a consequence, all links in posts to this particular file are lost and need to be re-edited. The cause seems to be that some media files have been uploaded in "February 2014", but they were published in "March 2014" In the export XML file, you can …
Category: Web

Migrate comments and likes wordpress.com to selfhosted site

I have recently changed from wordpress.com to wordpress.org, all content has transferred over completely fine (posts etc) and I have the theme/design set up the way I'd like now. I also found a way to migrate followers from my wordpress.com to my self hosted site, and I think that's worked now. However, my final problem is - is there a way to transfer all my old comments and likes from my wordpress.com site to my new selfhosted one? All my …
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.